Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Changing session path to not default. #178

Closed
nkovalenko93 opened this issue Dec 7, 2016 · 1 comment
Closed

Changing session path to not default. #178

nkovalenko93 opened this issue Dec 7, 2016 · 1 comment

Comments

@nkovalenko93
Copy link

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.

@pdspicer
Copy link
Contributor

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.

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants