This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Automatic login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Automatic login" Watch "Automatic login" New topic
Author

Automatic login

Christopher Henry
Greenhorn

Joined: Sep 22, 2011
Posts: 2
Hi All,

Is the following post accurate: Automatic Login

In other words, is automatic login with Servlets a pipe dream? I have been trying to implement this with sessions, however I cannot get around the problem of session cookie getting deleted when the user closes their browser. I do not have the desire or the time to implement my own session tracking. Is there any other solution?

Thanks
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 605

Article looks ok.
You can store login info in cookies explicitly & retrieve those cookie and log in the user automatically. (You don't store the actual user name & password in the cookie, just maybe an id or something so you can look up the user)


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
 
wood burning stoves
 
subject: Automatic login