Thanks for your reply Chuck. I've been through the whole documentation and
it hasn't helped. I'll try to make my question as clear as possible.
Basically I have a webapp and I want to have a session for each user that
connects to my server (just the usual servlet session that is created with
jsessionid). Do I have to wrap every link that I have in my webapp with an
Httpservletresponse.encodeURL()?
I was expecting that there would be a configuration swich for example in
server.xml file of Tomcat that I would switch it on, and the url rewriting
that would include the jsessionid would be done for me, so that I don't have
to wrap every link in my application with Httpservletresponse.encodeURL().
Basically, I was hoping that I don't have to touch my code and insert
Httpservletresponse.encodeURL() for every link that I have. But I think
there is no such a thing, or is seen as not a good practice.
I hope this makes my question clear.
----- Original Message -----
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, January 03, 2007 8:43 PM
Subject: RE: URL rewriting For Session Tracking
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Subject: URL rewriting For Session Tracking
All I want to do is 'URL rewriting For Session Tracking'.
I have to admit that I don't really understand your question. What do
you need to do with sessions that Tomcat doesn't already do
automatically via cookies or jsessionid? Check the doc for the cookies
attribute of the <Context> element:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
You also might want to take a look at Section 7 of the servlet spec:
http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]