Java Mailing List Archive

Home » Home (12/2007) » Apache Tomcat »

Re: Implementing HttpSession

Mark Thomas



lightbulb432 wrote:
> There are a couple of methods I'm having trouble understanding how to
> implement. The first is isNew(). Looking through the StandardSession code, I
> can't tell exactly when to set this to true and false - all I know is that
> initially upon session creation on the server (e.g. in
> ManagerBase.createSession()), the "new" property is set to true. In what
> cases is it set to false, and how would a web application developer use this
> method?

See SRV.16.1.7 (towards the end of the section) for this

> How can you tell Tomcat to use your implementation of HttpSession, so that
> when you call request.getSession(), it returns that object?

Write your own manager implementation.

> In the above case, would Tomcat take care of calling setMaxInactiveInterval
> and providing a value for getServletContext()?



To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 - Jax Systems, LLC, U.S.A.