- Location
- Placerville, CA, USA
- Occupation
- Retired PV System Designer
Normal behavior for cookies (used in the login process) is that a cookie which is set during an HTTPS session can be optionally marked as "secure". If that attribute is added at the time the cookie is set, then it will not be sent by the browser when it makes an HTTP Request. That means effectively that a login made under HTTPS cannot give you access to HTTP pages that require you to be logged in.I get what you're saying about the login being secure, but what I'm saying is that if you log in via an https link, and then after you are logged in you just go and change that link to http, that actually will log you out.
So unless I'm mistaken (absolutely possible!) you can't login under a secure connection and then stay logged in under an insecure one.
The alternative, not marking the cookie as secure, allows the login to cover both HTTP and HTTPS page requests, but also exposes the cookie over insecure requests, so that someone monitoring the traffic could see the cookie and use it to highjack your login session.
Both choices have their advantages, but if not all pages and all formatting options are reachable via HTTPS, the first option is not practical.