Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sessionDestroyed() not called

 
spratap singh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • 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 ]
 
Rahul kapoor
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adeel,

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

Let clarity prevail.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic