Hi,

I am writing a custom authentication process and like the app to leave
the user signed in after the browser closes (i.e., when the user
revisits the app she is directly signed in). I thought the following
piece of code would accomplish this:

HttpSession session = req.getSession(true);
session.setMaxInactiveInterval(60*60*24*14); // 2 weeks
session.setAttribute("Username", username);

But when I restart the browser and visit the app a user has to sign in
again. What is missing to keep user signed in after browser restarts?
Thanks.

Regards,
Peter

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to