Hello,
I've written some code that allows Gorilla sessions to be saved in a MongoDB database. This is obviously convenient if you are using Mongo for storing other data connected with your web application. Also, Mongo provides an excellent environment for session data. Mongo data is durable, the database is easy to split into shards if it gets overloaded, and Mongo 2.2 can expire old data automatically.
Is there interest in including this module with Gorilla? If so, I'll add some documentation and make it available in a Github repository.
(My view is that this code should be a separate module, not part of the existing sessions module. The reason is that bundling lots of different session management modules in the same place will create dependency hell. My code would force all sessions users to download the Mongo driver, but then if someone wrote a session module for MySQL, people would be forced to download that driver too, and so on.)
Pete