[
https://issues.apache.org/jira/browse/WICKET-2201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695790#action_12695790
]
Juergen Donnerstag commented on WICKET-2201:
--------------------------------------------
Murat,
Try this:
1) go to http://www.wicket-library.com/wicket-examples/signin2 and sign in with
"wicket" and "wicket".
2) the application will forward you to the home page
3) close your browser
4) open the browser
5) go to http://www.wicket-library.com/wicket-examples/signin2 again and you
will immediately be forwarded to the home page.
That works because
- in step 1 Wicket will create two cookies for you: login name and password
(encrypted).
- in step 5 Wicket will automatically load your login name and password with
the cookie values stored in step 1 (decrypting the password). Still before the
login page is rendered these values are used to authenticate the user and if
successful the login page is skipped and the user gets redirected to the
original url. The example application doesn't use a database to authenticate a
user but that is the only source code you need to change.
Juergen
> Auto login issue because cookie retrieval fails
> -----------------------------------------------
>
> Key: WICKET-2201
> URL: https://issues.apache.org/jira/browse/WICKET-2201
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: doesnt matter. i have tried both unix and windows
> Reporter: Murat Yücel
> Attachments: cookie-project.rar
>
>
> The issue trail can be found here.
> http://www.nabble.com/Cookie-retrieval-issue.-td22420819.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.