• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make my login page rember username and password.

 
smitha rajgopal
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I need to do a jsp page with login ,password text field and two check box 1.remember password
2.remember username.
How can i do this?Please help.

Thanks
 
ganesh pol
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use cookies
 
Raghavendra nandavar
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ganesh pol:
use cookies


There are many different ways you could implement this. In most methods, you'll set a cookie on the user's machine, and store the same value in the database. When the user returns to the site, you can check to see if the cookie exists. If it does, you can retrieve the user's information from the database based on the cookie value. Simpler systems where security is not an issue may store the user's primary key ID. More complex systems with heavier security requirements may assign a UniqueID value, created with the CreateUUID function

Hope this gives a raw idea to implement the same
[ April 04, 2006: Message edited by: Raghavendra nandavar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic