DescriptionStore session secret in database.
Use the database to hold the session secret, so that the data is shared among
all instances. hazmat suggested using findAndModify, and this would have
required an insert so that there was a record to find. This implementation
simply uses insert with a specified _id. Insert fails if a document already
exists with that id, so the secret is stored only on the first attempt.
https://code.launchpad.net/~abentley/charmworld/multi-charmworld/+merge/147746
(do not edit description out of merge proposal)
Patch Set 1 #
MessagesTotal messages: 2
|