Skip to content
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

Session cookies lack the ability to set the domain #104

Open
cimmanon opened this issue Feb 7, 2014 · 3 comments
Open

Session cookies lack the ability to set the domain #104

cimmanon opened this issue Feb 7, 2014 · 3 comments

Comments

@cimmanon
Copy link

cimmanon commented Feb 7, 2014

The site I'm working on makes use of subdomains. We would like to allow our users to login once and have that session persist across all subdomains in addition to the primary domain. Currently, session cookies are set for the domain that was used when the session was started.

@ozataman
Copy link
Member

ozataman commented Feb 8, 2014

I am not even sure if what you suggest is possible. Can a cookie have more than one domain? I've never had to do it that way, so I'm not sure. You typically end up playing some iframe tricks to achieve that kind of cross-domain integration...

@ghost
Copy link

ghost commented Feb 10, 2014

You just set the cookie's domain to .example.com and it will be sent to all subdomains of example.com.

@sopvop
Copy link
Contributor

sopvop commented Jun 4, 2015

@amontague is absolutely right here. rfc6265

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants