Hi all,
I have a function that I use (or would like to) for user authentication. In it, I set $PHP_AUTH_USER to global (you have to inside a function, or it thinks it's local). When the user is authenticated, the username is in PHP_AUTH_USER, and that's great; I want it there until they log out.
Now, when the user logs out, i have a script that calls:
unset($GLOBALS[PHP_AUTH_USER]);
this, in theory, would clear that variable. and, when i try to print that value to the screen, it is in fact gone (as opposed to definitely being there before the unset()). HOWEVER, when i go to a page that needs authentication again, it acts as if the user never logged out.
any ideas????
thanks,
-Phil