Skip to content

b0c1/padrino-sessionpool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

- start mongod
- padrino rake seed
- create user
- login with that user
- edit the profile
- click everywhere => with Rack::Session::Pool the session dropped, you are in the login page again

- Changes:
    - add fake image to the edit profile page
    - disable sessions in apps.rb
    - use Rack::Session::Pool in both app.rb


Solution:
* disable session and flash in apps.rb (I set a session_key and session_secret global variable to the pools)
  Padrino.configure_apps do
    disable :sessions
    disable :flash
    set :session_secret, 'b30960eb53ffb8f36310109722ac74a9a0351eecfafe69c6f2e7eb587a9d69d1'
    set :session_key, 'test.session'
  end

* add Rack::Session::Pool and Rack::Flash into all app.rb:
  use Rack::Session::Pool, :key => settings.session_key, :secret => settings.session_secret
  use Rack::Flash

About

Padrino multiapp example with Rack::Session::Pool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages