wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 12761
    
    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
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: 12761
    
    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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: some about apache tomcat session?
 
Similar Threads
How to invalidate session on the basis of session ID in servlet
Session Tracking
How to know size of a session
limit the no of sessions with struts.
Session