Hello,

Thanks for your reply. but what I'm looking for is, yes logoff the user, but
not making him/her click some link. I've this page and I want it to ask for
username & password whenever a user comes/comes back. Any suggestions?

Thanks anyway
Nitin

----- Original Message ----- 
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Nitin Mehta" <[EMAIL PROTECTED]>
Cc: "PHP List" <[EMAIL PROTECTED]>
Sent: Saturday, April 03, 2004 3:54 PM
Subject: Re: [PHP] how to reset PHP_AUTH vars


> Nitin Mehta wrote:
> > Hello all,
> >
> > I'm facing this problem and tried many solutions with no success. How do
I reset the value of PHP_AUTH_USER and PW.
> >
> > I've tried session_destroy(), but as I'm not starting any session at
all, it's not worth.
> >
> > I've tried using random value to include in header.
> >
> > Now what should I do?
> >
> > Thanx in adv for any suggestion/help
> > Nitin
>
> Are you trying to logoff a user using http autheniation? Provide a
> logoff link in this form:
>
> <a href="http://nonexistentuser:[EMAIL PROTECTED]">Logoff</a>
>
> This sets the login credentials in the browser to nonexisting user, so
> your code will return 401 response and the browser will ask the user for
> username and password again.
>
> I'm not sure if this method works in IE with the latest security patch
> installed. These should ignore username and password in links.
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to