[
https://issues.apache.org/jira/browse/WICKET-2116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675681#action_12675681
]
Juergen Donnerstag commented on WICKET-2116:
--------------------------------------------
Because in your example Wicket has no reason to keep the first session; there
is no data, nothing has changed. Not persisting the session and creating a new
one with the next request doesn't make a difference, but is the cheaper
operation.
> Session instantiated twice
> --------------------------
>
> Key: WICKET-2116
> URL: https://issues.apache.org/jira/browse/WICKET-2116
> Project: Wicket
> Issue Type: Bug
> Components: wicket-auth-roles
> Affects Versions: 1.4-RC1
> Environment: Windows, JDK 1.6
> Reporter: bernard
> Attachments: Testcase.zip
>
>
> The attached testcase is similar to the Authentication example in the
> distribution, only simpler.
> If I set a breakpoint on the constructor of the TestSession class, then the
> session is instantiated twice. Once when HomePage is loaded, and the second
> time when the link to the Admin page is clicked. If in contrast I run the
> Authentication example then its session is instantiated only once.
> I don't have any idea why this happens.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.