dativebase / old-pyramid

Online Linguistic Database (OLD)
http://www.onlinelinguisticdatabase.org/
8 stars 2 forks source link

Set session key to OLD name #55

Closed jrwdunham closed 2 years ago

jrwdunham commented 2 years ago

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>.