Skip to content

Instantly share code, notes, and snippets.

@basteez
Created July 26, 2018 08:10
Show Gist options
  • Select an option

  • Save basteez/4cb41a734b18ee140886bce42b13ebd9 to your computer and use it in GitHub Desktop.

Select an option

Save basteez/4cb41a734b18ee140886bce42b13ebd9 to your computer and use it in GitHub Desktop.
JavaEE - web.xml session complete configuration
<session-config>
<session-timeout>30</session-timeout>
<cookie-config>
<name>JSESSIONID</name>
<domain>example.org</domain>
<path>/shop</path>
<comment><![CDATA[Keeps you logged in. See our privacy policy for
more information.]]></comment>
<http-only>true</http-only>
<secure>false</secure>
<max-age>1800</max-age>
</cookie-config>
<tracking-mode>COOKIE</tracking-mode>
<tracking-mode>URL</tracking-mode>
<tracking-mode>SSL</tracking-mode>
</session-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment