I have read about this problem before.
The code giving me trouble was written by someone else. I creates this:
$_SESSION[‘userid’]
When a user logs in. Here is the problem, if a user changes from [url]www.(website).com
I tried solving the issue:
[code=php]
$subdect = explode(‘.’, $_SERVER[HTTP_HOST]);
if (count($subdect) >= 3)
{
$clean = “.”.$subdect[1].”.”.$subdect[2];
ini_set(“session.cookie_domain”,$clean);
}
else $clean = “.”.$_SERVER[HTTP_HOST];
session_set_cookie_params(3600, ‘/’, $clean);
session_start();
I put that on every website where there is a session_start(), and that hasn’t solved the problem, so what’s going on?