Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android 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......"
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to implement "Remeber me on this computer" or "Log me automatically on each request"
 
Similar Threads
regarding client server logs
Web Service Security
Checkers game question
Cannot post in certain forums
Autosave or increase session timeout?