Skip to content

Instantly share code, notes, and snippets.

@ShigeoTejima
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShigeoTejima/6dbd964ad4860ca0fb80 to your computer and use it in GitHub Desktop.
Save ShigeoTejima/6dbd964ad4860ca0fb80 to your computer and use it in GitHub Desktop.
set cookiePath for jsessionid
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app error-url="">
<class-loader delegate="true"/>
<jsp-config>
<property name="keepgenerated" value="true">
<description>Keep a copy of the generated servlet class' java code.</description>
</property>
</jsp-config>
<session-config>
<cookie-properties>
<property name="cookiePath" value="/foo/bar"/>
</cookie-properties>
</session-config>
</glassfish-web-app>
TIP: If you want to look at the Schema Definitions
to see the complete set of elements and attributes
supported by the Extension/Bindings-Deployment Descriptors
you may check the xsd's located
in the <WAS_INSTALL_ROOT>/properties/schemas
- folder where they are placed during WAS installation.
<session-config>
<session-timeout>
30
</session-timeout>
<cookie-config>
<path>/foo/bar</path>
</cookie-config>
</session-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment