WardCunningham/Smallest-Federated-Wiki — pull request #228 by mruzicka (2012-05-14 00:31:35+00:00)
Title: make session store configurable

This makes it possible to specify other session stores than the default Rack::Session::Cookie (which doesn't seem to behave well when the Federated Wiki is run in the Passenger environment).
The store to use is specified by setting the environment variable SESSION_STORE to the name of the class implementing the store, for example:

SESSION_STORE="Rack::Session::Memcache"

Note that all prerequisites of the session store implementation specified in this way must be added to the Gemfile so that they are on the ruby load path and can be loaded when needed. (This patch adds memcache-client to the Gemfile, which is a prerequisite of the Rack::Session::Memcache.)