I would like to completely disable Tomcat session management.  I'm in
the process of porting a legacy app with homebrew session management
from JServ to Tomcat, and I want to keep using that homebrew session
management for the time being.  (I'm using Tomcat 4.1.24, JDK 1.4.0.)

Currently, Tomcat's StandardSessionManager is getting in the way; it

  * writes an empty (well, 81-byte) SESSIONS.ser for every webapp
    at shutdown

  * logs lots of stack traces at startup and shutdown, because the
    classes in that old session management scheme are not serializable
    (but they are accessible via the HttpSession objects)

So, of course I consulted the FAQ, which says this:

   Look at the Session manager component and tweak accordingly.

That sentence is actually a link to
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/manager.html,
which has lots of information on how to configure StandardSessionManager
and PersistentSessionManager -- but nothing at all on completely
disabling Tomcat's session management.  Arggh.  My naive attempt was to
add this:

  <Manager pathname="/dev/null" />

to one of my <Context> elements, but that didn't work -- Java barfs
(EOFException) trying to read a serialized file from /dev/null.

Surely someone has written a dummy session manager class that does
nothing...

        Greg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to