Commit memcache work. memcache is only enabled in production, and currently only...
[selectricity-live] / config / environment.rb
index 571638d14a3fc1a0ccefbce34442f8cbc1fa8fc0..2a7700951185f8eb71204f1210948ed156ec81a3 100644 (file)
@@ -65,7 +65,6 @@ require 'uniq_token'
 require 'randarray'
 require 'gruff'
 require 'sparklines'
-
 require 'rubyvote'
 ELECTION_TYPES = %w(ssd plurality approval condorcet borda)
 
@@ -87,6 +86,10 @@ class String
   end
 end
 
+#Change the session store key, so that it will not conflict with other webapps
+ActionController::Base.session_options[:session_key] = 'selectricity_session_id'
+CGI::Session.expire_after 1.year
+
 # action mailer configuration
 ActionMailer::Base.delivery_method = :sendmail
 ActionMailer::Base.default_charset = "utf-8"

Benjamin Mako Hill || Want to submit a patch?