Solved Remember Login?

Microsoft / Vista
March 30, 2009 at 19:48:29
Specs: Windows Vista, 2GB
Hey I was wondering were I could find a javascript code that I can put in an already made code to make it remember the login info. The already made script is in the following link:

If you could give me some script to remember login info that would be great! If you need more info please comment.

See More: Remember Login?

Report •

March 31, 2009 at 08:51:03
Hi, are you seeking cookie-based JavaScript or for a user-activated checkbox on a form?

Report •

March 31, 2009 at 11:52:16
✔ Best Answer
If you mean an auto login type of thing, then you could add <body onload="login()">, and modify the login function to either set a cookie if the login info is correct or retrieve the cookie during the onload event. here's a resource for dealing with js cookies.

However, that script isn't very secure and anyone could read the source to find out what user names and passwords one could use to login. If you have access to server side scripting, then I'd recommend using that, or perhaps using some sort of hash.

Report •

March 31, 2009 at 17:16:31
Thank you, that did help. It's okay if it isn't secure, I am part of a web design contest, so it is basically just for looks, but it would help if the 'Remember Me' was in there. Thank you.

Report •

Related Solutions

Ask Question