Using 404 pl1, when I tried the following, it works but the session still exists so if I logon again the variables don't get set because of the following code:
session_start();
if (!$PHPSESSID)
{
session_register('user');
}
if ($action == 'logout')
{
session_unset();
session_destroy();
}
So logging on immediately after the 1st time logging out, since $PHPSESSID still exists, it won't register the user variable. The only way I got it to work was by adding unset ($PHPSESSID); after session_destroy. Is this normal behaviour?
Thanks,
Doug