Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

OT: Preventing browser from remembering login form password

by Anonymous Monk
on Dec 18, 2006 at 17:22 UTC ( #590499=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have written a login page for my web application, it comprises of two fields one for the user to enter their name and the other for their password.

The problem is that the values entered into the page are being kept, so that the next time the page is opened that users name and password are in field boxes in the form

username: user1 password: ********
Is there anyway of preventing the values from being stored so that they are always blank when the login page is loaded?

Thanks

Comment on OT: Preventing browser from remembering login form password
Download Code
Re: OT: Preventing browser from remembering login form password
by dorward (Curate) on Dec 18, 2006 at 17:29 UTC

    Most browsers come with features that allow them to remember passwords for users, and most have options to disable that feature. The specifics of turning it off vary from browser to browser.

    (There is also some non-standard, proprietry HTML extension that lets the author disable the feature in some browsers. I don't know the syntax off the top of my head, and would discourange its use (since its (a) non-standard and (b) a choice that should be left in the hands of the user, not the author)).

      If autocomplete="off" isn't already a standard, it soon will be... "In practice, this attribute is required by many banking institutions, who insist that UAs with auto-complete features implement it before supporting them on their Web sites. For this reason, it is implemented by most major Web browsers already, and has been for many years."

      However, I would discourage its use because it's irritating and it's the reason I have greasmonkey installed in the first place.

      I can't help but wonder if the Question Asker was really looking for $cgi->delete_all though.

      -Paul

Re: OT: Preventing browser from remembering login form password
by bucky0 (Initiate) on Dec 18, 2006 at 17:49 UTC
    That's a client side thing. You could try to fake it out by changing the names of the username/password fields, but I'm not sure how well it would work,.
      Thanks for the advice, appreciate it
      That's a client side thing. You could try to fake it out by changing the names of the username/password fields, but I'm not sure how well it would work,.

      I'm not really sure, but I guess some JavaScript wizardry may do as well. Even in that case, though, the solution wouldn't be bulletproof nor would it apply to all cases.

Re: OT: Preventing browser from remembering login form password
by msk_0984 (Friar) on Dec 19, 2006 at 04:56 UTC
    Hi,

          As the above monks mentioned we have to deal with the Cache. But the CPAN Module CGI::Sessions can also help you out. Once you have logged out then the Sessions would be closed and it could be help ful for u .....

    Work Hard Party Harderrr!!
    Sushil Kumar

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-08-21 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls