-
Notifications
You must be signed in to change notification settings - Fork 148
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
"Remember me" not working #423
Comments
Even worse is that this website has such a short timeout that I cannot even complete a complex text before I'm logged out - and then I loose all the stuff I entered when I click "Save" as the page editor simply redirects to the login page again. One could wish for a better auth-handling when editing in the admin interface: notify the use about the issue, let them copy the text and then redirect to the login (through a click on a new "LOGIN AGAIN" button). |
Mostly we're using the ASP.NET Core auth framework here, you can see the configuration in The timings/expiry uses the defaults, and if I test in one my sites i can see the expiry date on the cookie is set correctly. Some questions/things to look into:
|
My best guess is that it is an issue with web-farms. I'll focus on that. |
Found the solution here: https://stackoverflow.com/questions/46318461/asp-net-core-remember-me-persistent-cookie-not-works-after-deploy - using Next thing is that the key has an expiry date:
And I don't know what happen when it hits that date. Hopefully .NET will issue a new key all by itself. The complet configure services code is then:
|
Maybe that part is worth mentioning the Cofoundry example code for other users (even though it is a .NET core issue only). |
Thanks for taking the time to post the soution. I've extracted the in-context re-login enhancement to #424 and I'll leave this open as a reminder to update the deployment docs. |
Docs updated, will be released alongside v0.10 |
Clicking "Remember me" in the admin login page doesn't work on my production site (but is working on the dev system). So I was wondering if you could supply some hints as to why it wouldn't work? Maybe just a quick explanation of the cookies involved, such that I can debug it myself :-)
By "not working" I mean, it simply doesn't remember my login. When I get back th day after, I am logged out of the admin pages.
The text was updated successfully, but these errors were encountered: