-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
after login or signout will lost session and secureCookies true will loop login page. #1970
Comments
after mutation authenticateUserWithPassword() or unauthenticateUser() will reset session.
|
theres a solution,store data in mongodb and use node-schedule clear data everyday. |
@bookyo Regarding the first issue here, when you login a new session is created. All the data will be cleared and this is expected. The session is probably not the right place to store data. Consider using the database or creating a custom cookie. The configuration of a reverse proxy and cookies can be difficult. I'd say you have a miss configuration somewhere as we've got this working on a number of large scale production sites. I've been chatting with the team about what we can do to make configuration and deployment in these situations easier. |
The second bug you mention...
Is related to the secure cookie/proxy issue discussed in (#1887). It's is a complex topic that cuts across Keystone's internals, project code, deployment config and browser behaviour. I've written up what I know here: Keystone 5: Secure Cookies and Reverse Proxies The TL;DR is that you should ensure...
|
after login or signout will lost session and secureCookies true will loop login page.
bug one: after login or signout will lost session.
my code:
i expect viewcounts in req.session will keepalive.
undefined
{ date: 1574006400000, counts: 1 }
{ date: 1574006400000, counts: 2 }
{ date: 1574006400000, counts: 3 }
{ date: 1574006400000, counts: 4 }
{ date: 1574006400000, counts: 5 }
this is right way。 but when i login will lost req.session.viewcounts.
console will show:
undefined
{ date: 1574006400000, counts: 1 }
{ date: 1574006400000, counts: 2 }
{ date: 1574006400000, counts: 3 }
{ date: 1574006400000, counts: 4 }
{ date: 1574006400000, counts: 5 }
undefined
see,after i use mutation authenticateUserWithPassword(),req.session.viewcounts will become undefined。i think there's something wrong in req.session.
bug two:
with reverse proxy set secureCookies true, and https url cant into adminui, will loop in login page.
The text was updated successfully, but these errors were encountered: