Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Get rid of JSESSIONID cookie

Anonymous
Not applicable

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

1 Accepted Solution
bsloki
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

2 Replies
bsloki
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

Anonymous
Not applicable

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

<%@ page session="false" %>

directive.