-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I'm having trouble getting the SessionCleanUp to function. In zk.xml I have this:
<listener> <description>Initiate the session</description> <listener-class>my.package.SessionInitiator</listener-class> </listener> <listener> <description>Cleanup the session</description> <listener-class>my.package.SessionCleanup</listener-class> </listener>
public class SessionCleanup implements org.zkoss.zk.ui.util.SessionCleanup { @Override public void cleanup(Session sn) throws Exception { System.out.println("**************************************************Session cleanup********************************************************************"); } }
When I clear the history of my browser, my SessionInitiator class functions properly, but my SessionCleanup doesn't. Any ideas why this could be?
Hi Richard, only my nosiness, what kind of things you will clean up?
best
Stephan
Hi Stephan,
In my case, I'm using an editor with image upload for user articles, and I'm parsing the HTML of the editor content on session cleanup to check if any images that have already been stored (in S3) have been deleted from the HTML (by the user), and if so delete them from storage. I could do this on every save, but I want to keep the processing time down for the user.
Thanks Richard for the information.
Asked: 2012-07-05 13:36:44 +0800
Seen: 153 times
Last updated: Jul 07 '12