I have two applications and want them to share their sessions. This is trivial, at least so far. Now I am running in some stange issue.
I have set the same session_key and secret in the environment.rb and the two applications did not share the same session.
Verified if development.rb has something... nothing.
Tried to cleanup cookies etc, nothing.
I then tried to change the secret, luckily i tried to change to something short and simple (mysecret) then something awkward arised. Running app 1 was ok, but running app 2 raised:
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:188:in `ensure_secret_secure': Secret should be something secure, like "f1e78444a4c3402165606a8314d29704". The value you provided, "myownsecret", is shorter than the minimum length of 30 characters (ArgumentError)
from c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_c
But both apps are running in 2.3.2.
Then I've tried the console for both applications and verified that the secret is very much the same.
So, what could be influencing here?