This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Persistent session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Persistent session" Watch "Persistent session" New topic
Author

Persistent session

David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Does Tomcat support persistent session like Websphere do?


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by David Ulicny:
Does Tomcat support persistent session like Websphere do?


All servlet containers that implement the Servlet 2.2 API must provide for session tracking through either the use of cookies or through URL rewriting. All Tomcat servlet containers support session tracking.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
I don't mean session tracking, but session persistence.
http://www-306.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/06061105.html

Something like this one.
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Somkiat Puisungnoen:


All servlet containers that implement the Servlet 2.2 API must provide for session tracking through either the use of cookies or through URL rewriting. All Tomcat servlet containers support session tracking.


Pui,
I think Persistent Session that the original poster is talking about is different from the session tracking in your post... Persistent Session in WebSphere needs some kinda DataSource and Database to store the session persistently so that it can be retreived later...

Just my 2 cents...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
You are right Ko Ko, that's exactly what I mean.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
http://www.jguru.com/faq/view.jsp?EID=212858
Budi Kurniawan
author
Greenhorn

Joined: Sep 15, 2004
Posts: 12
Tomcat 4 and 5 do swap session objects to secondary storage such as a database. You can configure Tomcat to do so. Internally, Tomcat employs a background thread that checks how old a session object is, whether a session needs to be invalidated, etc. The module that manages session objects is called Manager (discussed in Chapter 9: Session Management).


Author of <a href="http://www.amazon.com/exec/obidos/ASIN/097521280X/ref=jranch-20" target="_blank" rel="nofollow">How Tomcat Works</a>
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by Budi Kurniawan:
Tomcat 4 and 5 do swap session objects to secondary storage such as a database. You can configure Tomcat to do so. Internally, Tomcat employs a background thread that checks how old a session object is, whether a session needs to be invalidated, etc. The module that manages session objects is called Manager (discussed in Chapter 9: Session Management).


Manager is like SessionListener or not ??
 
GeeCON Prague 2014
 
subject: Persistent session