Hello,
I wonder if anyone has ever had a requirement to set secure flag on JSESSIONID cookie and what needed to be done to successfully complete the task?
Please note adding <secure>true</secure> to <session> => <cookie> works only over https - otherwise the form is not accessible (even when secure form is forced in form property).
Thanks.
Setting Secure Flag on JSESSION cookie
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 3
- Joined: Mon Apr 20, 2015 12:56 pm
-
- Moderator
- Posts: 184
- Joined: Tue Sep 11, 2007 8:58 am
Did you add the secure flag to web.xml? e.g.
change:
to:
change:
Code: Select all
<session-config>
<session-timeout>30</session-timeout>
</session-config>
Code: Select all
<session-config>
<session-timeout>30</session-timeout>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</session-config>
0 x
Who is online
Users browsing this forum: No registered users and 23 guests