开发者

Can't retrieve the session on clicking of browser's back button

I have rails application that calculates prices of goods and I set p开发者_JS百科rices in session. I have 'back' button in my application. When I clicks on 'back' link, I will get my previous session values like 'prices','goods' I purchased. But when I clicks on 'browsers' back button,I won't get my session values, I have to refresh the page for that.


I'd say you have caching issues... The browser remembers what it saw before, and thinks it's the same (without even going to the trouble to ask the server any more). Try if this article helps


You probably want to prevent the browser from caching your pages so that they get refreshed when the user clicks the Back button. This article should help.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜