-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
25 lines (21 loc) · 823 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- 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