dev@glassfish.java.net

Re: enableCookies-setting of sun-web.xml gets ignored

From: <Jan.Luehe_at_Sun.COM>
Date: Mon, 03 Mar 2008 16:05:44 -0800

hi wolfram,

we do have the following unit test for this very feature:

  /cvs/glassfish/appserv-tests/devtests/web/sessionIdUrlRewrite

and it's passing for v2 ur1.

it uses this sun-web.xml:

  <?xml version="1.0" encoding="UTF-8"?>

  <sun-web-app>
    <session-config>
      <session-properties>
        <property name="enableCookies" value="false" />
      </session-properties>
    </session-config>
  </sun-web-app>

and makes sure that the response does not have any Set-Cookie header.

in your sun-web.xml, you don't need to specify "enableURLRewriting".
setting "enableCookies" to false should be sufficient. but that is just a
side note.

could you mail me your war file?

thanks,


jan


Wolfram Rittmeyer wrote:

> Hello,
>
> I have some webapps where I do not want to use cookies. Yet the
> following configuration in sun-web.xml gets ignored:
>
> <sun-web-app>
> <!-- ... -->
> <session-config>
> <session-properties>
> <property name="enableCookies" value="false" />
> <property name="enableURLRewriting" value="true" />
> </session-properties>
> </session-config>
> <!-- ... -->
> </sun-web-app>
>
>
> This worked fine with GFv2 (b58g) but seems to be broken in v2UR1.
>
>
> I've also just filed a bug report (4375):
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=4375
>
>
> Regards,
>
> Wolfram Rittmeyer
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>