[ 
https://issues.apache.org/jira/browse/WICKET-6465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16161056#comment-16161056
 ] 

Emond Papegaaij commented on WICKET-6465:
-----------------------------------------

org.apache.wicket.Session#destroy() is only called when a user logs out, not on 
session timeout. HttpSessionBindingListener.valueUnbound is called on both 
explicit logout and session timeout. Therefore, the code to clean the disk 
store should go in valueUnbound, not destroy.

> PageStore not cleared at session end
> ------------------------------------
>
>                 Key: WICKET-6465
>                 URL: https://issues.apache.org/jira/browse/WICKET-6465
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 7.8.0
>         Environment: Tomcat
>            Reporter: Franta Mejta
>            Assignee: Emond Papegaaij
>            Priority: Critical
>         Attachments: WICKET-6465.patch
>
>
> WICKET-6387 causes the page store not to be cleared at logout on Tomcat. The 
> problem is that tomcat does not call {{valueUnbound}} or {{valueBound}} when 
> an attribute is set to the current value (new == old).
> https://github.com/apache/tomcat/blob/e28b35c9e40aeb4b7ac52a98f07ad965630e2766/java/org/apache/catalina/session/StandardSession.java#L1424



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to