users@glassfish.java.net

Re: How to prevent Glassfish v2 to rewrite urls with jsessionid?

From: <glassfish_at_javadesktop.org>
Date: Tue, 27 Jan 2009 03:03:54 PST

Is session rewriting and session cookies an either or way in glassfish?
Tried to set
<session-properties>
      <property name="enableCookies" value="true" />
      <property name="enableURLRewriting" value="true"></property>
 </session-properties>
in my sun-web.xml. But this fix prevents that jsession id is appended in encode(Redirect)URL/CoyoteResponse. hreq.isRequestedSessionIdFromCookie() returns false BUT getContext().getCookies() is true and prevents the rewrite!!!

if (hreq.isRequestedSessionIdFromCookie() ||
                (getContext() != null && getContext().getCookies()))
[Message sent by forum member 'joma_javanet' (joma_javanet)]

http://forums.java.net/jive/thread.jspa?messageID=328357