Something is clearing the session then. Do a global search in the
code for session and see if you clear it anywhere. If you find it
cleared anywhere, even if you think that code should not be called,
then put some debug in to check (or just comment out the clear for
temporarily).
Colin
>
>
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
On 8 March 2012 15:06, Myth17 <nitish...@gmail.com> wrote:
> 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.Something is clearing the session then. Do a global search in the
code for session and see if you clear it anywhere. If you find it
cleared anywhere, even if you think that code should not be called,
then put some debug in to check (or just comment out the clear for
temporarily).Colin
>
>
> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
Yes, probably. Rails is clearing the session because it detects the
problem. Google for the message and you will find lots of hits.
Colin
>>> > To post to this group, send email to rubyonra...@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > rubyonrails-ta...@googlegroups.com.
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>
>>> --
>>> gplus.to/clanlaw
>
> --
> 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/-/c9d1Cdc7BgYJ.
>
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.