The cookie used to keep session information. When you use link to access the form page, you are sending the session cookie stored on browser back to server, that now can to know with what session he has to work.
"Creates a cookie, a small amount of information sent by a servlet to a Web browser, saved by the browser, and later sent back to the server. A cookie's value can uniquely identify a client, so cookies are commonly used for session management. " http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/Cookie.html On Thu, Oct 1, 2009 at 11:48 AM, Stephen Nelson <step...@eccostudio.com>wrote: > > On 1 Oct 2009, at 15:11, Pedro Santos wrote: > > 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 >> -- >> Pedro Henrique Oliveira dos Santos >> > > Hi Pedro, > > Thanks for the reply. You are correct - I just added a link component on my > login page to my form page and it now functions as expected. > > However I don't quite follow why it doesn't work when manually typing a url > in. If I'm logged-in I would expect to stay logged-in whether I manually > type a url or follow a link. Which bit am I misunderstanding? > > -- > Stephen Nelson > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos