Posts: 106
Location: South Wales, UK
|
Hey all,
I have this following script to redirect when the cookie timesout:
PHP Code:
if(isset($_COOKIE['cookie_info'])){
//Cookie is set and display the data
$cookie_info = explode("-", $_COOKIE['cookie_info']); //Extract the Data
$username = $cookie_info[0];
}else {
// redirect
header('Location: login.php');
}
but for some reason, people using LANs are being instantly redirected back to the login page when they login.
Can anyone please explain why this is happening and tell me how to over come this problem?
Thanks in advance
Manson
|