You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Untested, but because this depends on cookies, you should be able to pass the domain option to set a domain-wide cookie (ex. .github.com instead of subdomain.github.com).
Untested proposal:
app.use(sessions({cookieName: 'mySession',// cookie name dictates the key name added to the request objectsecret: 'blargadeeblargblarg',// should be a large unguessable stringduration: 24*60*60*1000,// how long the session will stay valid in mscookie: {domain: '.github.com',path: '/api',// cookie will only be sent to requests under '/api'maxAge: 60000,// duration of the cookie in milliseconds, defaults to duration aboveephemeral: false,// when true, cookie expires when the browser closeshttpOnly: true,// when true, cookie is not accessible from javascriptsecure: false// when true, cookie will only be sent over SSL. use key 'secureProxy' instead if you handle SSL not in your node process}}));
I want subdomain can have access to session, I have configured like?
eg:
I create session at domain abc.com, and I want to access the session in domain name 1.abc.com or 2.abc.com (* .abc.com)
thank!
The text was updated successfully, but these errors were encountered: