File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!