不维护会话 [英] Do not maintain session

查看:84
本文介绍了不维护会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,我已在书签添加它。

i have one website and i have added it in bookmark.

的情况是:
我开通了从书签的位置加载浏览器和网站现在TAB1包含网站下一个我正在登录,现在它在主页。

the situation is: i opened the browser and website loaded from bookmarked location now the tab1 contains the website next i am logging it now it is in home page.

然后我打开新的标签,但我没有加载的任何部位。然后我关闭了TAB1然后我打开从书签位置的站点。在这里,而不是loginpage其直接载入这是在TAB2的页面。

then i opened new tab but i didnt loaded any site. then i closed the tab1 then i opening the site from bookmark location. here instead of loginpage its directly loading the page which was in tab2.

时,我可以关闭登录选项卡,然后它应该要求在一个选项卡的登录页面

when i can close the logged in tab then it should ask for login page in next tab

请帮我家伙如何实现这一目标。

please help me guys how to achieve this

感谢

推荐答案

登录cookie被同一浏览器标签共享(有时甚至在同类型的浏览器)。

Login cookie is shared in same browser tabs (sometimes even in same type of browser).

在换句话说,如果你在IE选项卡登录,您不必在不同的选项卡登录。登录cookie仍然有效,并且您将自动登录。

In other words, if you login in a tab in IE, you do not have to login in different tabs. Login cookie is still valid, and you are automatically login.

然而,如果你打开​​Firefox或Chrome相同的页面,你仍然有,即使你已经在IE浏览器登录的登录。

However, if you open same page in FireFox or Chrome, you'll still have to login even if you have logged-in in IE.

更新:请不要要求用户重新登录,如果一个标签被关闭,并在不同的标签重新打开(在同一个浏览器)。即使银行网站不会那么做的。 (当然,user'll需要的,如果在浏览器关闭重新登录。)

Updated: Please do not ask user to re-login if a tab is closed and reopen in different tab (in same browser). Even banking websites won't do that. (Of course, user'll need to relogin if the browser is closed.)

这篇关于不维护会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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