In my application once I call an action on a different controller all my session variables seem to disappear also the login session seems to expire. Even if I start a new request from browser I need to authenticate again.
On Thursday, March 8, 2012 8:28:47 PM UTC+5:30, Tim Shaffer wrote: > > Session variables should be shared, unless I'm not understanding the > question. > > You can set a session variable in one controller like so: > > session[:my_key] = 'my value' > > Then access it in another controller by simply calling session[:my_key] > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/G91C6M2c0XAJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

