Skip to content

Instantly share code, notes, and snippets.

@snuxoll
Created January 30, 2009 11:49
Show Gist options
  • Save snuxoll/55032 to your computer and use it in GitHub Desktop.
Save snuxoll/55032 to your computer and use it in GitHub Desktop.
Configuration example for SafeSession
Merb::Config.use do |c|
c[:use_mutex] = false
# Setup the session store, require the safe_session extension to
# generate a unique salt for the application if one does not
# already exist
c[:session_store] = 'cookie'
require File.join(Merb.root, "merb/extensions/safe_session.rb")
safe_session = SafeSession.new
c[:session_secret_key] = safe_session.salt
c[:session_id_key] = '_irsea_session_id'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment