I have a Padrino application. And I would like to share the session between instances (load balanced machines).
I set my own secret, but I don't know what else to set to let it work for session sharing. I see domain in cookie, where is hostname of the machine. I tried to set it by
set :sessions, :domain => 'mydomain.org'
But it is not working, but it is necessary? Please, what I have to set to share the session between application instances.
Thanks to all
One way is to put the cookie info into an environment variable that is run every time Sinatra runs a new instance of the app, e.g.