on-internet
← Community

Set 'secure' flag to JSESSION id cookie in Tomcat 6

Stack Overflow ·

I want to set 'secure' flag to the JSESSIONID cookie. Is there a configuration in Tomcat 6 for this? I tried by setting 'secure="true"' in 'Connector' (8080) element of server.xml, but it creates this problem: Connection is getting reset. Note that in my application, the JSESSIONID is getting created in 'http' mode ( index page ), when the user logins, it will switch into 'https' mode.

Comments

Sign in or sign up to comment and upvote.

No comments yet.