注销时不转到上一页 [英] does not go to the previous page when logout

查看:75
本文介绍了注销时不转到上一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个jsp项目,我使用会话进行用户授权.我已经做好了 session.invalidate(); 在注销页面中.

I have a jsp project and i use session to user authority. I have done session.invalidate(); in logout page.

注销后,按返回按钮将显示前一页, 我不愿意这样做. 所以请帮助我.

after logout when press the back button it shows the previous page, I dont whan't to do this. so please help me to this.

推荐答案

您可以将html上的缓存设置为在注销确认页面上过期.标签的详细信息可以从这里获得.

You can set the cache on the html to expire on you logout confirmation page. The details for the tags can be had from here.

http://www.htmlgoodies.com/beyond/reference/article.php/3472881/So-You-Dont-Want-To-Cache-Huh.htm

这篇关于注销时不转到上一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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