Join GitHub today
Admin logout after deploy #2109
Preamble: I'm not sure if this is a bug or expected behaviour. I couldn't find anything pointing this out in the documentation, so I'm leaving this here for discussion.
I'm using padrino admin with the default cookie session store. Deployments are done via Capistrano.
Whenever we deployed a new version, everyone currently logged in into the admin interface got "logged out" / ending up on the login page.
Steps to reproduce:
The login information is stored as the admin-user ID the session cookie. So far nothing special. The problem is the naming of the key under which this ID is stored.
My current solution:
I'm setting the session_id to a (for my environment) more stable schema inside
Why is the "checkout" directory included in the session key name? To me this looks redundant, since
Anyhow this was a bit of unexpected magic behaviour. I'd ask for either document it well (maybe even put it in the auto-generated
[^1]: I'm not setting it to the symlinked