I have this code:
if (isset( $_SESSION['user_agent'] )) {
if ($_SESSION['user_agent'] != md5( $_SERVER['HTTP_USER_AGENT'] )) {
die('Session error.');
}
}
Everything works fine. But every time I login (once per 24 hours), I get the error. Is the user agent changing or something?
Thanks for your help.