James, the issue raised by the poster will not be solved by deleting the session and redirecting the user. This alone will not clear the browser's cache (nor the one in proxies, etc).
I think that to tackle the problem one must set appropriately the HTTP headers like "Cache Control", "Expires", etc, on the sensitive pages (and test the solution on all possible browsers, and network configurations..). I am not an expert in this area, so I stop here, but this is the area to look into. Raul On Fri, Dec 12, 2008 at 11:27 AM, JAMES MASON <[email protected]>wrote: > I usually boilerplate it like this: > > def logout > session.delete > redirect_to "/" > end > > > James Mason > Systems Administrator/Safety & Environmental Director > Yamato Engine Specialists > 360-306-5017 > > > On Wed, Dec 10, 2008 at 2:44 PM, raul parolari <[email protected]>wrote: > >> >> The page shown is the page cached in the browser. >> >> To make sure, run "tail -f log/development.log" on a shell, and verify >> that Rails has not received a request. >> >> However, if you click a link on the "old page", Rails should redirect you >> to the login action (or equivalent). >> >> Raul >> >> >> >> On Wed, Dec 10, 2008 at 2:19 PM, Jack <[email protected]> wrote: >> >>> >>> Hi, >>> I'm trying to destroy session when user clicks logout in >>> rails....Here is the code: >>> >>> def logout >>> reset_session >>> redirect_to CASClient::Frameworks::Rails::Filter.client.logout_url >>> (request.referer, url_for (:controller => 'site', :action => >>> 'myportal')) >>> end >>> >>> However, when I click the back button, it shows me the page with all >>> information. If the session is destroyed, it should not display the >>> page, right? >>> >>> What could be the issue? >>> >>> Appreciate any help!! >>> >>> Thanks! >>> >>> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ruby-on-rails-programming-with-passion" group. To unsubscribe from this group, send email to ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---
