系统后台的页面是用iframe框架整的,session超时后,退出不会退出整个框架,会在框架的右边显示,很郁闷,我用的是struts2
解决方案 »
- 获取数据连接??
- 我想要限制同一个用户在不同的地方重复的登录,我该怎样实现。
- 同一页面中多次引用同一个js脚本,存在冲突
- 分布式服务
- 页面转向问题,请进~
- 求救!!!这是什么引起的异常?
- 为什么页面不能编辑
- 我最新的ASP.NET程序,欢迎大家测试及反馈意见.
- eclipse+tomcat使用求救:The requested resource (/TomcatTest/servlet/HelloWorld) is not available.
- 编译servlet类总是提示找不到包???
- 发布JSP网站,tomcat出问题! 求高手指导!
- 关于myEclipse中tomcat 6.0启动慢的问题
if (top.location != self.location){
top.location=self.location;
}
此段js在body的onload方法里面初始化。
你只需要在 $("#exit").click(function(){
top.location.href="admin_logout.action";//让顶级窗口跳转,其先用action移除session中的值
});
action 片段:
public String logout() throws Exception {
getRequest().getSession().removeAttribute("ManangeAuthentication");
return "ManageEntry"; //ManageEntry登陆页面