I have bookmarkable pages for the login and the form page.
Now I go to the form page
If you using a link to go to form page, for some reason you don't get an
cookie on your browser holding your session information. If you just writing
the url to form page on browser, you are not passing session information
encoded on url because it is bookmarkable.

"which implies that the URL will not have any session information encoded in
it, and that you can call this page directly without having a session first
directly from your browser"
http://cwiki.apache.org/WICKET/bookmarkable-pages-and-links.html

On Thu, Oct 1, 2009 at 10:47 AM, Stephen Nelson <step...@eccostudio.com>wrote:

> Hello Wicket Users,
>
> I'm a beginner to wicket having previously used Spring MVC and Struts 1/2
> so definitely from the other side as far as web frameworks go!
>
> Anyway I have a custom session to store a logged-in user; a panel component
> which performs the login; and a form web page.
>
> I'm using Wicket 1.4.1 on Glassfish 2.x and Spring 2.5.6 to hook it all
> together.
>
> I have bookmarkable pages for the login and the form page.
>
> Anyway when I deploy the app I go to login. This works fine and I have
> logger statements when storing the user in the session. Now I go to the form
> page, which after clicking submit, checks if you're logged in. This test
> fails and I'm asked to login. If I now do a further login I can return to
> this form page and it functions as expected. I'm not sure why this session
> object is null the first time around.
>
> If you want me to provide a few code snippets I can.
>
> Many thanks
>
> Stephen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

Reply via email to