This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Automatic login" Watch "Automatic login" New topic

Automatic login

Christopher Henry

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?

Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 607

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
I agree. Here's the link:
subject: Automatic login
It's not a secret anymore!