I think that that will be a function of the browser. Some browsers reload  
the page on back button, so just display content from the cache. Either  
way, unless you can specify to not cache the page, and the browser honours  
it, not much you can do to stop it happening.


Simon

On Fri, 19 Jun 2009 11:47:59 +0800, Newb Newb  
<[email protected]> wrote:

>
> hi friends...
> here is my query....
> kindly give ur views pls...
> after logging into the application,i redirect to company list page.now
> when user clicks the browser back button it should show the login
> page.that is i want to destroy the session.so in my login controller i
> have written code below.
> def log_in
>   if request.get?
>      reset_session
>   end
> end
>
> in my routes.rb
> map.root :controller => "login",:action => "log_in"
> but when i click browser back button it shows login page but it doesnot
> go to the log_in action.
> Any helps ....
> Thanks a bunch

--~--~---------~--~----~------------~-------~--~----~
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 [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