Discussion:
Setting the Session Id length
James Maidment
2004-06-16 14:40:22 UTC
Permalink
Hi,

Fairly recently, methods appeared in org.apache.catalina.session.ManagerBase (setSessionIdLength()) to allow variation of the Session Id length, however I can't find any way of actually calling these methods. Can anyone tell me how this parameter should be set? (I'm using the embedded Tomcat within JBoss)

Many thanks,
James
Tim Funk
2004-06-16 14:57:07 UTC
Permalink
In your Host or Context declaration, you'll need to create to add a element
to declare your session manager. Then add the property: sessionIdLength="42"
or whatever length you'd like. It might be as simple as:

<Manager sessionIdLength="42"/>


-Tim
Post by James Maidment
Hi,
Fairly recently, methods appeared in org.apache.catalina.session.ManagerBase (setSessionIdLength()) to allow variation of the Session Id length, however I can't find any way of actually calling these methods. Can anyone tell me how this parameter should be set? (I'm using the embedded Tomcat within JBoss)
Benjamin Armintor
2004-06-16 15:24:25 UTC
Permalink
Setters on Catalina components are usually reflected in attributes in
the corresponding server.xml element.

Benjamin J. Armintor
Operations Systems Specialist
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: ***@its.utexas.edu



-----Original Message-----
From: James Maidment [mailto:***@kizoom.com]
Sent: Wednesday, June 16, 2004 9:40 AM
To: tomcat-***@jakarta.apache.org
Subject: Setting the Session Id length


Hi,

Fairly recently, methods appeared in
org.apache.catalina.session.ManagerBase (setSessionIdLength()) to allow
variation of the Session Id length, however I can't find any way of
actually calling these methods. Can anyone tell me how this parameter
should be set? (I'm using the embedded Tomcat within JBoss)

Many thanks,
James
Jérôme Duval
2004-06-16 17:36:17 UTC
Permalink
To avoid having to type in "-classpath ." when you use your JVM add ";.;"
after "C:\j2sdk1.4.2_01\bin".

The classpath is the variable your JVM uses to figure out where it can find
the classes that it is supposed to use. By adding "." you tell it to look in
the directory you are currently in. The semi-colons are used to separate
multiple entries in system variable values. It's a good idea to add it to
all of your entries.

Loading...