I am trying to use stunnel infront of Haproxy for SSL support. SSL certificates are located according to stunnel configuration. I am also able to get the https connection, but every time I use https, session get lost. I am not using tomcat 8443 port to get the secure content. Is is possible to get the https connection only using stunnel and haproxy? And my requirement is to have https connection once user get logged in.
migrated from stackoverflow.com Jun 18 '11 at 11:24
This question came from our site for professional and enthusiast programmers.
The application session is typically stored as a cookie. There are a number of important components in a cookie but the relevant one in this case is the
It is possible for the cookie to get lost when you move from https to http because if the secure flag is set then the cookie will not be sent under a non-https connection.
You need to check to see what is happening to the cookies. You can do this easily by using suitable browser tools and extensions to inspect the cookies.