Yes, maybe your session is working fine.. But you need to add more.. example..
if your session is nil? or blank? render something. or redirect to a page you want to be seen. On 15 Peb, 15:47, Anurag Sachan <anuragsacha...@gmail.com> wrote: > I have created a application of log-in and logout using session. but > when i click on logout. then i saw a page that says "you are logged > out". > But the problem is that if i click the back button of my browser, then > it redirect me to the previous page. so how can i prevent from this > situation. My session is working fine because when i refresh my page > then the login screen appear. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.