从所有打开的页面注销 [英] Logout from all opening pages

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

问题描述

大家好
登录页面后有一个页面,此页面可以打开其他页面.
我想从任何人注销时,其余人都感觉到将dgo处理到默认页面.
请问如何在js中执行此操作?

谢谢

解决方案

本文介绍了如何关闭所有子窗口.
http://munishbansal.wordpress.com/2008/12/31/how-to-close-all-child-windows-on-closelogout-of-main-pagewindow-aspnet-web-application/ [ ^ ]

Google [ ^ ]了解更多信息.


您所需要做的就是清除缓存,仅此而已.检查这个不错的提示/技巧
注销后浏览器后退按钮问题 [ 解决方案

This article describes how you can close all child windows.
http://munishbansal.wordpress.com/2008/12/31/how-to-close-all-child-windows-on-closelogout-of-main-pagewindow-aspnet-web-application/[^]

Google[^] for more.


All you need is clear the cache, that''s all. Check this nice Tip/Trick
Browser back button issue after logout[^]


Logging out will already invalidate the session (i.e. any future requests will fail to authenticate and get redirected appropriately). If you want them to notice quickly, you can have an AJAX ping requester which just returns whether the session is still valid, and a response handler that reroutes the page if not.

Be aware, though, that this will (i) be annoying to users who may want to still copy or view information even after the session expires, and (ii) cause more server request hits (even if the request itself is trivial).


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

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