• 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

sessionDestroyed() not called

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

I have a web application.
The sessionDestroyed() is not called even after session timeout.
I have following settings in my web.xml and weblgic.xml :
web.xml :
<session-config>
<session-timeout>2</session-timeout>
</session-config>

weblogic.xml :
<session-descriptor>
<session-param>
<param-name>CookieMaxAgeSecs</param-name>
<param-value>120</param-value>
</session-param>
<session-param>
<param-name>InvalidationIntervalSecs</param-name>
<param-value>5</param-value>
</session-param>
<session-param>
<param-name>PersistentStoreType</param-name>
<param-value>replicated_if_clustered</param-value>
</session-param>
<session-param>
<param-name>TimeoutSecs</param-name>
<param-value>120</param-value>
</session-param>
</session-descriptor>

I am in a Cluster environment.
Please help why the function has not been called as ideally it shuould be called.

Please help me.


Thanks,
-Spratap
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to add something like the following in your web.xml
 
spratap singh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeanne,

Thanks a lot for you suggestion.
Actually I am already using that .
What is surprising is sessionCreated() is called from the same listener but
sessionDestroyed() is not called.

Please help.


Thanks,
Spratap
 
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm facing the same problem when the application gets undeployed, but it works well when session timed out or session gets invalidated ..
[ October 06, 2004: Message edited by: srini vasan ]
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Adeel,

Please check. These two statements are made by two different people.

Let clarity prevail.
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yeah thanks rahul deleted my post.

Hey Spratap,
Have you tried to invalidate the session inside sessionCreated()? just give it a try.

Hey Srini,
Are you too in a clustered environment? if yes then you can help him, because it is working with you on sessionTimeOut and even with session.invalidate().
[ October 07, 2004: Message edited by: adeel ansari ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic