Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session

 
vedha tttttt
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi muthu kumar,


can i set the session maxtime?

thanku

vedha
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic