I read somewhere that :

When its first time you are accessing a page, tomcat doesnt know if cookies
are supported.. so to be safe, it will embed the session id in the url. IF
you then access another page, this time round tomcat knows what kind of
browser its dealing with ... and if cookies are supported, it wont embed
the session id in the url but will put it in a cookie..

Now to tell tomcat to always use the cookies , you add

<session-config>
     <tracking-mode>COOKIE</tracking-mode>
 </session-config>


In your web.xml file..

Cheers
Josh

On Sat, Jul 14, 2012 at 8:30 PM, Alec Swan <alecs...@gmail.com> wrote:

> Hello,
>
> While working on my previous problem I found out that when I do a GET
> to one of my bookmarkable pages, e.g. /lrm/ms/oid/123, I get a 302
> redirect to /lrm/ms/oid/../../ms/oid/123.0;jsessionid=xxx. However,
> when I do a GET to /lrm/network I get a 200 response and jsessionid is
> set as a cookie in the response.
>
> /lrm/network is explicitly mounted as mountBookmarkablePage in
> Application.init(). We are using Tomcat 6.0 and Wicket 1.4.17.
>
> How can I make /lrm/ms/oid/123 return 200 just like /lrm/network?
> Should we somehow mountBookmarkablePage each such page which we have
> thousands of? Will upgrading to Wicket 1.5 help achieve this behavior?
>
> Thanks,
>
> Alec
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to