• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

1)Is there any way to know how many session objects are there on the server side

2) how to make a session ivalid after 30 minutes of inactivity in tomcat

3) how do i call my database to update the user has been invalidated by inactivity (2)
I have a list of user logged in the system the user end is applet.
If the user is inactive for 30 mts the session should expire
If the session expires i need a entry in database for the same


thanks
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you can specify the session timeout in web.xml as:

<web-app>
<session-config>
<session-timeout>60</session-timeout>
</session-config>

...
</web-app>
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"sush pop", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff
[ October 17, 2008: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by S Raman:
Hi,

1)Is there any way to know how many session objects are there on the server side

2) how to make a session ivalid after 30 minutes of inactivity in tomcat

3) how do i call my database to update the user has been invalidated by inactivity (2)
I have a list of user logged in the system the user end is applet.
If the user is inactive for 30 mts the session should expire
If the session expires i need a entry in database for the same


thanks



1. HttpSessionListener help you

2. define in DD as pop explained you above

3. do logic about Database in destroyedSession() in HttpSessionListener

for detail google HttpSessionListener

Hope This Helps
reply
    Bookmark Topic Watch Topic
  • New Topic