PDA

View Full Version : Remember Login And Password with cookie



trippin
02-06-2007, 05:15 AM
I am desperately trying to find a script that will save the login id and password to a cookie so that if the page is revisited in the future the users login info is remembered.

I have searched and searched and have been unsuccessful so I am in great need of guidance and expertise on this matter. I am fully aware of the security issues of saving a password in plain text. I would like to get a working script first then I will learn about password hashing later.

My closest attempt was by using the Recall Form Values script II (http://www.dynamicdrive.com/dynamicindex16/formremember2.htm) on this site and the result was successful at saving the login id but not the password. I then came upon this post: http://www.dynamicdrive.com/forums/showthread.php?t=8821&highlight=recall+form which is basically the same question as mine. I tried the edited script by ddadmin which was supposed to work at saving the password also but It didn't work for me.

Anyone that can help me with this.. Please Do!

jscheuer1
02-06-2007, 12:10 PM
If the login and password are for server-side use, they should be saved server-side as well. Javascript is not the tool for that.

trippin
02-09-2007, 09:12 PM
It is not server-side. I know it can be done via javascript.

jscheuer1
02-10-2007, 05:07 AM
http://www.dynamicdrive.com/dynamicindex16/formremember.htm

or:

http://www.dynamicdrive.com/dynamicindex16/formremember2.htm

trippin
02-11-2007, 05:56 PM
John thanks for links but if you had read my posts you would've seen that those are the links to the very basis of my problem. I am still searching a solution to this problem. :(

mburt
02-11-2007, 06:01 PM
It is not server-side. I know it can be done via javascript.
Yes, it can be done with javascript, but it is not reliable. Some people disable javascript in their browsers. Server-side is the better way to do it. Is there any reason in particular you're not doing it server-side?

trippin
02-11-2007, 06:24 PM
Because I have no knowledge in server-side languagues. :p
I was simply trying to take an already made script from this site (http://www.dynamicdrive.com/dynamicindex16/formremember2.htm) and the already edited version of this script (http://www.dynamicdrive.com/forums/showthread.php?t=8821&highlight=recall+form) and figure out why it isn't working for passwords.