tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Implementing HttpSession
Date Thu, 04 Oct 2007 12:26:53 GMT
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()?

Nope.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message