Get rid of JSESSIONID cookie | Community
Skip to main content
November 17, 2015
Solved

Get rid of JSESSIONID cookie

  • November 17, 2015
  • 2 replies
  • 983 views

Hi,

in my website every request sets and/or uses a JSESSIONID cookie. Now this indicates to the caching server that a request should be handled by the publisher instance, skipping the cache.
I'm pretty sure I don't need any sessions (yet). However, I cannot seem to get rid of it.

Do you have any idea, where the session is coming from?

Regards
Mike

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

make sure you have <%@ page session="false" %> in your jsp

2 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
November 18, 2015

make sure you have <%@ page session="false" %> in your jsp

November 18, 2015

Turns out, sessions are created by default when using JSPs, unless you disable it by

<%@ page session="false" %>

directive.