[H-GEN] PHP Question

Michael Anthon michael at anthon.net
Thu Jun 5 04:09:26 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

> function logout () {
>         unset($_SESSION['authdata']);
>         print_r($_SESSION['authdata']);
>         return true;
>         }
>
> The print_r returns nothing. I then go back to log in and somehow the
> $_SESSION['authdata'] is now set.

Whether or not this works depends on the setting of register_globals.  With
it off then what you are doing should work, with it on you need to use
session_unregister('authdata').  Also according the the doco 4.3.x or later
the original method you have should work for both instances


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list