Implementing HttpSession 2007-10-04 - By Mark Thomas
Back 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@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|