CodeJunkie has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm trying to find out how I can loggout a user when they have logged in using apache htaccess authentication.
I realise that by completing the login boxes you are setting the environment varibles as follows
$ENV{'REMOTE_USER'}; $ENV{'REMOTE_ADDR'};
So I thought this code would work...
if ($logout) { print "<b>Logging out user: $ENV{'REMOTE_USER'}</b><br/>"; $ENV{'REMOTE_USER'}=; $ENV{'REMOTE_ADDR'}=; }
Unfortunately it doesn't, can anyone suggest a different way I can log a user out of a session without getting them to close their browser... or shall I just have cookie controlling logging in and out of sessions?
cheers,
Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Logging out htaccess
by merlyn (Sage) on May 08, 2003 at 17:29 UTC | |
|
Re: Logging out htaccess
by belg4mit (Prior) on May 08, 2003 at 17:47 UTC | |
|
Re: Logging out htaccess
by jgallagher (Pilgrim) on May 08, 2003 at 16:36 UTC | |
|
Re: Logging out htaccess
by Aristotle (Chancellor) on May 10, 2003 at 20:25 UTC | |
|
Re: Logging out htaccess
by CodeJunkie (Monk) on May 09, 2003 at 10:18 UTC |