I've just successfully set up apache mod_auth_mysql for my site and worked out that I can get the user's login credentials from $_SERVER['PHP_AUTH_USER'] etc. which is great.
What I now need to be able to do is provide a method for the user to 'logout'. ATM, the session only ends when he closes his browser. Is there a way of making an Apache mod_auth_* session end using PHP?
I tried:
unset($_SERVER['PHP_AUTH_USER']);
but that didn't work.
Cheers,
Richard
(Apache 2.0.52; PHP 4.3.10)