"How do I log out from HTTP authentication?"
I used UNIX htaccess for Log in to my web page. Inside my code I use MYSQL with PHP but everytime I closed the seeion for MYSQL.
Now my goal is to logo out from unix server and once I do that no matter how many same web page I have open will be logged out or inactive as for example in hotmail accout if you do log out once you cannot have access for the other hotmail window if there is any open one. I am using following code but it's not working. Please have a look and help me.....
print "Logout Successfull";
First of all, this is a PHP question, so I moved it to the PHP section.
With PHP Authentication, users are logged out when the browser receives a 401 error, so you shoud be able to log them out with code something like this:
header("WWW-Authenticate: Basic realm=\"My Realm\"");
header('status: 401 Unauthorized');
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)