Changing session path to not default. #728
nkovalenko93
started this conversation in
General
Replies: 1 comment
-
Non-default cookie path will mean that unless your login callback is at /test/login/callback, then the cookie will not be sent with the request, hence why you are probably seeing an undefined session. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I have the following problem: I've changed express session cookie path from default '/' to '/test'. My /login/callback function does redirect to index page. Before redirect I have a user authenticated via passport in request session, but after redirect request session is undefined.
When session is undefined, app requests to SSO agent, SSO agent calls /login/callback which redirects to index page. Index page doesn't have a session and so on in a loop.
May be you know how to fix it?
I need to run 2 applications under a SSO agent. But they have mixed SSO session when using default cookie path. They should use pathes /app1 and /app2.
Beta Was this translation helpful? Give feedback.
All reactions