PHP Session Doesn't Set on First login attempt
you need to put the www on the url. otherwise the initial session doesn't record properly. use a php header script to attach the www when it is omitted:
if ($_SERVER['HTTP_HOST'] == "example.com")
{
$url = "http://www." . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header("Location: $url");
}
Comments
Post a Comment