-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

> Well, I've already implemented a servlet that works in this manner, and it's
> quite nice. The only problem is that I store the username in the HttpSession
> object, which can timeout after a while. There doesn't seem to be any way to
> tell jserv never to invalidate a session. You can set the timeout to be really
> high, but that's not a very good solution. Anyway, if the user remains inactive
> for too long, his HttpSession is gone and none of my other servlets can check
> and see who he is. Any ideas?
> 

I have all my servlets inherit from a class that implements HttpServlet.
This superclass checks for a valid session, and if one isn't there then it
redirects to a login servlet, and once the user is logged in comes back to
the original servlet.

Joe Yandle
Internet Programmer
Westlake Consulting Group



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to