You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Connie Chan <cc...@drfirst.com> on 2001/04/04 17:23:21 UTC

session + cookie

Hi,

My application handles session via cookies.  I notice that Tomcat, by
default, sets the cookie name to JSESSIONID.  Is there any ways I can
rename the cookie name?


Thanks,
Connie

Re: session + cookie

Posted by Milt Epstein <me...@uiuc.edu>.
On Wed, 4 Apr 2001, Connie Chan wrote:

> Hi,
> 
> My application handles session via cookies.  I notice that Tomcat, by
> default, sets the cookie name to JSESSIONID.  Is there any ways I can
> rename the cookie name?

I don't believe so -- the session id cookie name is mandated by the spec.

Why do you want to, i.e. what are you trying to do?

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
mepstein@uiuc.edu


servlets, sessions, and memory ..

Posted by Danny Angus <da...@thought.co.uk>.
I see from the archive that the memory "leak" effect is caused by session
handlers creating a session for each.. well.. session.

My question is how can I take charge of this, i cant seem to turn off
session tracking for servlets. Simply removing the interceptors from
server.xml doesn't help.

I find that after about 820,000 hits in six hours, :-), I get an out of
memeory exception, I could avoind this if I knew how to destroy sessions, or
not create them at all, or even just fine tune their time-to-live.

I haven't found my way round this bit of the source yet, so *any* tips will
be greatfully recieved, however obvious they may be to others...

danny