注销后,该页面仅在IE中不会返回到prevoius页面 [英] After logout the page is not going back to prevoius page only in IE

查看:82
本文介绍了注销后,该页面仅在IE中不会返回到prevoius页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.UtcNow.AddHours(-1));
Response.Cache.SetNoStore();



此代码仅适用于IE浏览器.
注销后,如果我们单击后退"按钮,则该页面不会转到上一页
但是在Mozilla firefox浏览器中,它不起作用.

注销后,如果我们单击后退"按钮,则页面将返回上一页



This code works only for IE browser.
After logout if we click on back button the page is not going to previous page
but in Mozilla firefox browser it is not working.

After logout if we click on back button the page going 1 page back

推荐答案

尝试此技巧/窍门

注销后浏览器后退按钮问题 [
Try this Tip/Trick

Browser back button issue after logout[^]


将控件的宽度从%"更改为像素"
那么它将在mozila中工作
Change your control''s width from "%" to "Pixel"
then it will work in mozila


这篇关于注销后,该页面仅在IE中不会返回到prevoius页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆