-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookie session state shared across http and https without disabling force_secure_cookies #58
Comments
I noticed that Here is my config: I wanted to turn on secure cookies in rails, so I had to add this line as well: |
Strange, cookies are flagged as secure by default unless you set the option @ianneub that's weird since |
You have to be careful about where the middleware is inserted. The default instructions will insert it toward the bottom. I found that you need to insert it before ActionDispatch::Cookies in order for secure cookies to work properly. Non-secure cookies: Secure cookies: |
Interesting, thanks for the tip! @kbaum please ensure |
@kbaum I'm closing here. Please reopen if needed. |
Due to issues out of our control right now, I have some logged in pages that are https and some that are http. After reading through the github readme, it would seem that i would have to disable force_secure_cookies for this to function properly.
https://github.com/tobmatth/rack-ssl-enforcer#secure-cookies-disabling
That being said I am able to jump between logged in http and https pages without being logged out. My configuration looks like:
Am I misinterpreting the readme?
thx!
The text was updated successfully, but these errors were encountered: