File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes some about apache tomcat session? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "some about apache tomcat session?" Watch "some about apache tomcat session?" New topic
Author

some about apache tomcat session?

zhua zhou
Greenhorn

Joined: Nov 29, 2002
Posts: 1
How are setting the session's size and live time in one project?
How the session and memory's relation?
thanks!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
There is a session timeout in the default web.xml that gives timeout in minutes:

You can also set the timeout for any session - see the HttpSession API.
Your only control over session size is the amount of stuff you store in it. If everything saved in a session is Serializable, most servlet engines can save it to disk.
Bill


Java Resources at www.wbrogden.com
Ken Shamrock
Ranch Hand

Joined: Jan 23, 2002
Posts: 139
What is the usage of "Serializable"?Thanks


Thanks everyone who helped me
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
Serializable is an interface - it doesn't define any methods - it is just used as a label. So if you declare your class as implements Serializable, Java object serialization will attempt to serialize an instance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: some about apache tomcat session?
 
Similar Threads
Session Tracking
limit the no of sessions with struts.
Session
How to invalidate session on the basis of session ID in servlet
How to know size of a session