cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Cordes" <cor...@cs.usm.maine.edu>
Subject Re: sessions
Date Thu, 24 May 2001 21:25:18 GMT
Hi Niklas,

The way sessions work is that for a certain period of time a single user
(read browser) has the same session id and thus session object within a
particular tomcat context. getSession(true) only creates a new session if
one for that user doesn't already exists.

An Example:

I visit your server and use a shopping cart program to purchase books, etc.
You supply me with a session.  If I leave and come back before that session
has expired it is still on your server and getSession(true) resuses the old
one.

Sessions are cool. Does this help? My only concern is the amount of memory a
Session object usesand that it may not be appropriate for high traffic
sites, but I might be paranoid.

-matt


----- Original Message -----
From: "Niklas Grunditz" <niklas.grunditz@infosim.com>
To: <cocoon-users@xml.apache.org>
Sent: Wednesday, May 23, 2001 5:17 PM
Subject: sessions


I have a question about sessions. I am using cocoon1.8.2 and tomcat.
When I use the command
session = request.getSession(true);

next time i run the program the sessionId is the same.. Why?

I look at the sessionId with:

session.getId();

I would be very happy with some help to have unique sessions.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message