File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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


vedha tttttt

Joined: Jan 19, 2005
Posts: 2

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 i need sessions for each client and if i apply sessions can they be active for wholeday.

any suggestion is welcome.


Muthukumar Devadoss

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

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

can i set the session maxtime?


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.

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
tag of the web.xml.

The following Link might be of some help to you.

I agree. Here's the link:
subject: session
It's not a secret anymore!