sessions
| From: | blackwater dev | Date: | Wed, 05 Oct 2005 15:17:20 +0000 |
| Subject: | sessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223660@lists.php.net to get a copy of this message | ||
I have an old site which uses this code on login:
//it does a query then
if ($affected_rows>0){
session_start(mysite);
session_register('admin');
$wardadmin = yes;
header("location: admin.php");
}
and in the top of admin.php:
session_start(mysite);
if (@$admin != "yes")
{
header("location: login.php");
exit;
}
The host recently upgraded to php 4.4 and now the login doesn't work.
I do notice when I login that the page goes to admin the right back to
login. Why doesn't admin see the session var?
Thanks!