archivesspace/archivesspace — pull request #82 by mark-cooper (2014-07-25 16:51:50+00:00)
Title: Implement support for repository selection stickiness

The current behavior of selecting the first created repository
(available to a user) each time a user logs in is frustrating
and unintuitive.

This is particularly a problem for sites with multiple
repositories where the "primary" repository is not listed first
in the repository selection dropdown menu.

Use a cookie that includes the session username to track the
currently selected repository so that the selection persists
between logins.

By including the username in the cookie maintaining the selection
for different users from the same browser will be handled correctly.