users@glassfish.java.net

Disabling cookies

From: <glassfish_at_javadesktop.org>
Date: Fri, 07 Dec 2007 03:08:35 PST

Hello,

My web application requires cookies to be disabled to work so I used the sun-web.xml file below to disable cookies in AppServer PE 9.0. But I cannot seem to get it to work in 9.1.

Any help would be appreciated.

- Owen

   

---START of sun-web.xml----
<?xml version="1.0" encoding="UTF-8"?>

<!--
 Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
 Use is subject to license terms.
-->

<!DOCTYPE sun-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN' 'http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd'>
<sun-web-app>
 <session-config>
  <session-properties>
   <property name="enableCookies" value="false"/>
   <property name="enableURLRewriting" value="true"/>
   <property name="timeout-in-seconds" value="600"/>
  </session-properties>
 </session-config>
</sun-web-app>
---END----
[Message sent by forum member 'oilagan' (oilagan)]

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