Skip to content

Loading…

Session cookies lack the ability to set the domain #104

Open
cimmanon opened this Issue · 3 comments

3 participants

@cimmanon

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
Snap Framework member

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

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

@sopvop

@amontague is absolutely right here. rfc6265

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.