File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes How to make my login page rember username and password. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to make my login page rember username and password." Watch "How to make my login page rember username and password." New topic
Author

How to make my login page rember username and password.

smitha rajgopal
Greenhorn

Joined: Sep 22, 2005
Posts: 14
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

Joined: Apr 29, 2005
Posts: 151
use cookies
Raghavendra nandavar
Ranch Hand

Joined: Jun 26, 2005
Posts: 231
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make my login page rember username and password.