I have the following setup:
Sinatra app proxied through nginx, with a redirect defined in the nginx-configuration:
http://www.example.com/api to http://api.example.com
I initialize the use of sessions with:
use Rack::Session::Pool
Now I can store and retrieve session-data with:
get '/make_it_so' do
session[:data] = 'yes indeed.'
end
get '/what_gives' do
session[:data]
end
For 3 to 5 reloads of http://www.example.com/what_gives I can see the session data, then suddenly it disappears to nil.
Can anybody help?
Similar questions are: