Hello all..
I have this problem with my code, the page is redirecting and wouldn't stop.. The browser stop it because it's redirecting all the time, and I have a global.php file that included in all php pages, so I putted this code for the session and it went like what I said
if (!session_is_registered('username')) {
if(!eregi('login.php', $PHP_SELF)) header('Location: login.php');
}
Also global.php included in login.php, but when I start it on the web server of my site, it does what i said before, but on my based server on computer it works fine, so please help me fast
and sorry for my english..