This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes How to implement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to implement "Remeber me on this computer" or "Log me automatically on each request"" Watch "How to implement "Remeber me on this computer" or "Log me automatically on each request"" New topic
Author

How to implement "Remeber me on this computer" or "Log me automatically on each request"

Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
If you open javaranch.com or gmail.com you can see "Log me automatically on each request" or "Remeber me on this computer" respectively. How can one implement that. I am using Web container based authentication and authoriazation. (web.xml based security). I did find a thread on this in the JSP form but the link pointed there is broken and the implementation is not clear on how to implement the above functionality.


SCJP, SCWCD, SCBCD
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

You can use a cookie to enable when a user selects this option. Now when a page loads, put a check to identify that cookie, if that cookie is null or not there then just load the login page or if it contains value then fetch username/password from that cookie and load a logged in page.


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to implement "Remeber me on this computer" or "Log me automatically on each request"