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 Apr 28, 2020. It is now read-only.
This has the effect of setting the session cookie on *.hasgeek.com, thereby also making it available on the parent domain and all subdomains. As the cookie is now shared across apps, we need to be careful about a few additional things:
The SECRET_KEY setting in all subdomain apps must match.
Session variables like lastuser_userid and lastuser_sessionid must be used in exactly the same way in all apps.
All app-specific session variables, including in the Lastuser app, must have a unique prefix to prevent conflicts.
To make these easier to manage, perhaps Lastuser and Flask-Lastuser should both switch to using a different cookie, perhaps named lastuser, using the same encrypted session mechanism as Flask's session cookie. This reduces the scope for conflict. Lastuser and Flask-Lastuser can look for special config for these in the LASTUSER_SECRET_KEY and LASTUSER_COOKIE_DOMAIN config variables, falling back to the default values.
The text was updated successfully, but these errors were encountered:
To facilitate #166, Lastuser in production now has the following in its
settings.py
:This has the effect of setting the
session
cookie on*.hasgeek.com
, thereby also making it available on the parent domain and all subdomains. As the cookie is now shared across apps, we need to be careful about a few additional things:SECRET_KEY
setting in all subdomain apps must match.lastuser_userid
andlastuser_sessionid
must be used in exactly the same way in all apps.To make these easier to manage, perhaps Lastuser and Flask-Lastuser should both switch to using a different cookie, perhaps named
lastuser
, using the same encrypted session mechanism as Flask's session cookie. This reduces the scope for conflict. Lastuser and Flask-Lastuser can look for special config for these in theLASTUSER_SECRET_KEY
andLASTUSER_COOKIE_DOMAIN
config variables, falling back to the default values.The text was updated successfully, but these errors were encountered: