We want users to be able to login and out of multiple OLD instances from a single Dative session. Right now, if you do this too often, you will fail after not too long. The underlying issue is that we just append the current OLD instance's name to the session cookie's key value until it becomes longer than the cookie spec tolerates.
Changes
Stop appending the current OLD key name to the session key. Just replace it with old_<OLD_INSTANCE_NAME>.
Fixes https://github.com/dativebase/old-pyramid/issues/54
Rationale
We want users to be able to login and out of multiple OLD instances from a single Dative session. Right now, if you do this too often, you will fail after not too long. The underlying issue is that we just append the current OLD instance's name to the session cookie's key value until it becomes longer than the cookie spec tolerates.
Changes
Stop appending the current OLD key name to the session key. Just replace it with
old_<OLD_INSTANCE_NAME>
.