wood burning stoves 2.0*
The moose likes Servlets and the fly likes session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "session" Watch "session" New topic
Author

session

vedha tttttt
Greenhorn

Joined: Jan 19, 2005
Posts: 2
hi


i am working on project using servlets and jsp which needs continous data entry in database. here client once logged continously enters data thru jsp page which is retrieved by servlet and inserted into database.do i need sessions for each client and if i apply sessions can they be active for wholeday.


any suggestion is welcome.

bye

vedha
Muthukumar Devadoss
Greenhorn

Joined: Feb 02, 2005
Posts: 1
hi vedha,
the session will not be maitained fro the whole day.
it will be maintained for fifteen minutes by default and any other time as per the maxTime-out set in the session detail
vedha tttttt
Greenhorn

Joined: Jan 19, 2005
Posts: 2
hi muthu kumar,


can i set the session maxtime?

thanku

vedha
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
yes you can. Read your server documentation and the J2EE specs on how to achieve it, it's really quite simple.

As to 15 minutes, that's non-standard. Maybe some server uses it as a default, but far from all do.
Tomcat for example uses 30 minutes as a default, I've seen another that used 5 minutes.


42
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Vedha,

You can very well set the time for sessions.

You can use the
<session-config>
tag of the web.xml.

The following Link might be of some help to you.

Cheers,
Swamy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session
 
Similar Threads
URGENT- - - - Related to Session in JSP
HttpSession vs Session Beans
Session/scope
get vs post
Ending a "specific" session