0

SessionCleanup not firing

asked 2010-12-03 13:19:34 +0800

eptx gravatar image eptx
130 3

I have as single class that implements SessionInit and SessionCleanup with zk.xml listener configured. The SessionInit method init() gets called when it should but not the SessionCleanup cleanup() method.

Is there a problem with one class implementing both interfaces or is something else going on?

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-12-03 14:29:49 +0800

eptx gravatar image eptx
130 3

After looking at zk code (Configuration.java) there's no problem having one class implement both interfaces. So what's up?

link publish delete flag offensive edit

answered 2010-12-03 17:25:56 +0800

eptx gravatar image eptx
130 3

Put the following in web.xml

<listener>
<listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class>
</listener>

link publish delete flag offensive edit

answered 2010-12-08 20:11:00 +0800

samchuang gravatar image samchuang
4084 4

updated 2010-12-08 20:23:55 +0800

Hi

Sine browser won't send event to server, it won't know when to clean session, so we have to use session timeout for clean up session.

So, have you set session-timeout in zk.xml, it use min

 <session-config> 
        <session-timeout>1</session-timeout> 
 </session-config> 

also, refer to The_session-config_Element

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-12-03 13:19:34 +0800

Seen: 293 times

Last updated: Dec 08 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More