Its actually weird then, I did a search to double check but I am not 
clearing the session anywhere. :|

On Thursday, March 8, 2012 8:59:01 PM UTC+5:30, Colin Law wrote:
>
> On 8 March 2012 15:06, Myth17 <[email protected]> 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 [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.
>
> -- 
> 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/-/8NOJZMxFjXAJ.
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.

Reply via email to