By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,686 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

unsetting PHP_AUTH_USER and PHP_AUTH_PW

P: 34
How do I unset PHP_AUTH_USER and PHP_AUTH_PW?
I am trying to create a logout script and I am encountering a problem where when go to relogin, I am already logged in.

In my logout script, I started a session, unset(session), and then destroy_session(). But, everytime I go back to the login link, It does not give me the window popup for the login information.

Only when I close the brower and then try logging in does the popup window ask for the PHP_AUTH_USER and PHP_AUTH_PW.


Please help.
May 23 '07 #1
Share this Question
Share on Google+
2 Replies


Motoma
Expert 2.5K+
P: 3,235
How do I unset PHP_AUTH_USER and PHP_AUTH_PW?
I am trying to create a logout script and I am encountering a problem where when go to relogin, I am already logged in.

In my logout script, I started a session, unset(session), and then destroy_session(). But, everytime I go back to the login link, It does not give me the window popup for the login information.

Only when I close the brower and then try logging in does the popup window ask for the PHP_AUTH_USER and PHP_AUTH_PW.


Please help.
Perhaps you could post your logout code?
May 24 '07 #2

pbmods
Expert 5K+
P: 5,821
As a sidenote, it is recommended that you NOT use register_globals.

Take a look at the comments at the bottom of this page for some ideas on how to do it. It looks to be somewhat of a tricky process, and a couple of developers have reported that it just refuses to work short of closing the browser window.
May 25 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.