Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

How do I reset http authentication w/o a browser shutdown?

by grizzlyguru (Initiate)
on Oct 20, 2002 at 16:13 UTC ( #206664=perlquestion: print w/replies, xml ) Need Help??

grizzlyguru has asked for the wisdom of the Perl Monks concerning the following question:

I have an application where the user must login via a general HTTP authentication in order to create an account. I would then like them to login again with the new HTTP authentication info they created. How do I reset the authentication w/o forcing the user to quit out of the browser and restart it?
  • Comment on How do I reset http authentication w/o a browser shutdown?

Replies are listed 'Best First'.
Re: How do I reset http authentication w/o a browser shutdown?
by crazyinsomniac (Prior) on Oct 20, 2002 at 16:32 UTC
Re: How do I reset http authentication w/o a browser shutdown?
by Aristotle (Chancellor) on Oct 20, 2002 at 16:50 UTC

    Like crazyinsomniac said - send a status 401 and the browser will prompt the user for a password.

    Be aware that HTTP authentication basically sends a plaintext password. If it's not a HTTPS connection, your users' passwords are open for anyone who wants to pick them.

    Makeshifts last the longest.

Re: How do I reset http authentication w/o a browser shutdown?
by Arguile (Hermit) on Oct 20, 2002 at 18:05 UTC

    If they don't need to see the rest of the site with the general login, another option is to simply isolate the account creation section in a subdir (or authenticate based on filename) and have different authentication parameters for it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://206664]
Approved by cacharbe
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2022-12-07 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?