Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Chance for Logout? |
|
Author |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 08 Feb '06 15:25 Post subject: Chance for Logout? |
|
|
Is there a chance to logout with Apache? The login via .htaccess or even PHP by send the 401 Header is very simple. But I didn't find a logout chance. The three ways I found are very ugly.
- Closing the Browser -> not good.
- Send a 403 or 401 Header -> Login comes again and ppl login again
- Overwrite User and psw -> ppl also login again
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Wed 08 Feb '06 16:32 Post subject: |
|
|
I think that it is how it works. warn users to close all browser windows.
In a script you can login/logout, using cookies/sessions, like this forum.
Steffen |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 08 Feb '06 16:39 Post subject: |
|
|
With PHP no doubt. I use sessions. But .htaccess. I can't reset. Or is threre a function to reset the env $_ENV['REMOTE_USER'] ?
putenv("REMOTE_USER="); Didn't helped me. |
|
Back to top |
|
|
|
|
|
|