Hi everyone,
I have created a page to allow our company customers login and modify their contact information protected by using .htaccess method. However, I can not figure out a way to create a logout method in PHP. What do I have to unset in order for apache to think the customer is logged out.
Thank you Maziar A.
warning untested code!!
unset($REMOTE_USER);
or
set $REMOTE_USER to an invalid username (not in .htpasswd or similar file)
$REMOTE_USER = "joenobody";
make a log-out link / button, and hope they will log out ;-)
ThanX but that doesn't work.. I've already tried it. Any other suggestions?
Thank you