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

Andrea Del Bene commented on WICKET-4277:
-----------------------------------------

I wouldn't consider this an issue. After you  I have signed in, the URL of test 
page is '/test?0-1.ILinkListener-signin', which means that you have called 
signin's onClick. When you signout and press back button, onClick is called 
again and you are redirected to signin page:

public void onClick() {
     // It appears that this is called again when the browser back button is 
pressed
     // on the signin page.
     AuthenticatedWebSession webSession = (AuthenticatedWebSession)getSession();
     if(webSession.isSignedIn()){
            // Do nothing
     }
     else{
           redirectToInterceptPage(new SignInPage());
        }
     }

you can consider to use a session token to preventing this problem.


                
> Sign in Link onClick() gets invoked by Browser Back Button
> ----------------------------------------------------------
>
>                 Key: WICKET-4277
>                 URL: https://issues.apache.org/jira/browse/WICKET-4277
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.3
>         Environment: GlassFish
>            Reporter: bernard
>         Attachments: quickstart.zip
>
>
> On a test page, the user clicks on a signin link that transfers to a signin 
> page.
> The signin page transfers back to the test page.
> The user clicks on a signout link on a test page that invalidates the sesion 
> and transfers the user to the signin page.
> If the user then clicks the back button then the onClick() of the signin link 
> on the test page is invoked again unexpectedly.
> Therefore, the user cannot go back to the test page by pressing the browser 
> back button.
> My apologies if I missed something. It looks kind of tricky and difficut.
> I guess the answer is within the URL parameter ?0-1.ILinkListener-signin but 
> I don't know what to do with it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to