Results 1 to 2 of 2
Thread: logging off using cgi???
May 18, 2010, 15:59 #1
logging off using cgi???
Hi there, I was wondering if there was a script that to logg a user off? Im using apache and I set the directory to allow a username and password, and since apache doesn't allow to log off unless you close your browser or something, what could I do to have a link when click would run the script to log the person off? thanks for any help.
May 18, 2010, 21:23 #2
- Join Date
- Aug 2000
- Philadephia, PA
- 1 Post(s)
- 0 Thread(s)
No. HTTP basic authentication involves the browser sending the encrypted username and password with each request. There is no actual state, no "logged in" and "logged out" status. The user becomes "logged out" after closing the browser simply because the browser stops remembering the username/password that was provided to send with each request. So there is nothing server-side you can do to log someone out, short of deleting their access entirely.
Now if you program your own authentication scheme using sessions or cookies rather than HTTP authentication, you can delete the session to log the user out.Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more