Changeset 1205

Show
Ignore:
Timestamp:
01/08/08 16:57:32 (9 months ago)
Author:
wyca..@gmail.com
Message:

Sessions work now

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • apps/benchmark/config/merb.yml

    r977 r1205  
    1717# Uncomment if you have more than one ORM or if you need to be specific about 
    1818# which memory store to use. Built-in options are: memory, cookie, or mem_cache 
    19 #:session_store: sequel 
     19:session_store: cookie 
    2020 
    2121:use_mutex: false 
  • apps/rails_benchmark/app/controllers/application.rb

    r978 r1205  
    44class ApplicationController < ActionController::Base 
    55  # Pick a unique cookie name to distinguish our session data from others' 
    6   session :off 
     6  # session :off 
    77end 
  • apps/rails_benchmark/app/controllers/perf_controller.rb

    r1201 r1205  
    3434      <hr>  
    3535    html 
     36    render :text => content 
    3637  end 
    3738 
  • apps/rails_benchmark/config/environment.rb

    r978 r1205  
    1212 
    1313Rails::Initializer.run do |config| 
    14   # config.action_controller.session = { :session_key => "_myapp_session", :secret => "some secret phrase" }   
     14  config.action_controller.session = { :session_key => "_myapp_session", :secret => "f53bb5d1230d43dc76441027b27667e1" }   
    1515  # Settings in config/environments/* take precedence over those specified here 
    1616