# Use the MySQL interface for SqlSessionStore
SqlSessionStore.session_class = MysqlSession

# Work out which session store adapter to use
environment = Rails.configuration.environment
adapter = Rails.configuration.database_configuration[environment]["adapter"]
session_class = adapter + "_session"

# Configure SqlSessionStore
SqlSessionStore.session_class = session_class.camelize.constantize

Work out which session store class to use automatically.
Work out which session store class to use automatically.


