IE 7显示用户在关闭并再次打开时仍然登录? [英] IE 7 showing User still Login when Close and Open again ?

查看:81
本文介绍了IE 7显示用户在关闭并再次打开时仍然登录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户使用ASP.Net 2005中的登录控件登录,然后关闭

浏览器然后再次打开浏览器,登录状态显示,用户仍然是

登录?


任何想法,当用户点击

浏览器的关闭按钮时如何退出用户?


我使用Sql Membership Provider来保证安全。


最好的问候,


Luqman

If user login with the login control in ASP.Net 2005 and then just close the
browser and then open the browser again, the login status shows, User still
Login?

Any idea, how to Logout the User when the User click on the Close Button of
Browser ?

I am using Sql Membership Provider for security.

Best Regards,

Luqman

推荐答案

很多时候,短期cookie,例如登录cookie,可以获得存储在IE缓存中的
即使你关闭浏览器后。当用户关闭浏览器时,你无法做任何事情。

。这里需要记住的事情是,一旦浏览器完全加载网页并且它的图形完全断开,它就完全与网络服务器断开连接。当浏览器关闭时(或当用户从网站上浏览

时)没有通知

因此没有办法处理这种类型事件和

销毁饼干。

-

希望这有帮助,

马克菲茨帕特里克
Microsoft FrontPage MVP 199?-2006。 2007年及以后


" luqman" < pe ******* @ cyber.net.pkwrote in message

news:%2 **************** @ TK2MSFTNGP03.phx .gbl ...
A lot of times, the short-term cookie, such as the login cookie, can get
stored in IE''s cache even after you close the browser. There is absolutely
no way that you can do anything when the user closes out the browser. The
thing to keep in mind here, once the browser fully loads the web page and
it''s graphics, it is completely disconnected from the web server. There is
no notification that occurs when a browser is closed (or when a user browses
away from a web site) so there isn''t a way to handle this type of event and
destroy the cookie.
--
Hope this helps,
Mark Fitzpatrick
Microsoft FrontPage MVP 199?-2006. 2007 and beyond

"luqman" <pe*******@cyber.net.pkwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

如果用户使用ASP.Net 2005中的登录控件登录然后关闭



浏览器然后再次打开浏览器,登录状态显示,用户

仍然

登录?


任意想法,当用户点击关闭按钮时如何退出用户



浏览器?


我使用的是Sql安全会员提供商。


最诚挚的问候,


Luqman
If user login with the login control in ASP.Net 2005 and then just close
the
browser and then open the browser again, the login status shows, User
still
Login?

Any idea, how to Logout the User when the User click on the Close Button
of
Browser ?

I am using Sql Membership Provider for security.

Best Regards,

Luqman



你确定你不是在谈论关闭标签吗?如果您正在谈论关闭浏览器的话,那就非常令人担忧,需要调查。


据我所知,登录cookie是链接到会话ID。会话ID

由浏览器生成,因此当浏览器关闭时,会话ID

将丢失。当浏览器重新打开时,会生成一个新的会话ID,

将不会与前一个会话的cookie绑定,这将简单地在
结束时死亡它的超时期限。因此,当您返回到登录页面或

应用程序中的其他页面时,您不应该显示为




使用标签,另一方面,当标签关闭时,会话不会丢失

如果您返回到
$ b $,您仍会被标记为登录b申请 - 至少到会议结束时间。


HTH


彼得


" ;鲁格曼" < pe ******* @ cyber.net.pkwrote in message

news:%2 **************** @ TK2MSFTNGP03.phx .gbl ...
Are you sure you''re not just talking about closing a tab? If you''re talking
about closing the browser, it''s very worrying and would need investigating.

As I understand it, login cookies are linked to a session id. Session Ids
are generated by the browser, so when the browser is closed, the session id
is lost. When the browser re-opens, a new session id is generated that
would not tie in with the cookie for the previous session, which will simply
die at the end of its timeout period. So you should not still be shown as
logged in when you return to the login page, or other page within the
application.

With tabs, on the other hand, the session is not lost when a tab is closed
and you will still be marked as logged in if you return to your
application - at least until the session times out.

HTH

Peter

"luqman" <pe*******@cyber.net.pkwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

如果用户使用ASP.Net 2005中的登录控件登录然后关闭



浏览器然后再次打开浏览器,登录状态显示,用户

仍然

登录?


任意想法,当用户点击关闭按钮时如何退出用户



浏览器?


我使用的是Sql安全会员提供商。


最诚挚的问候,


Luqman
If user login with the login control in ASP.Net 2005 and then just close
the
browser and then open the browser again, the login status shows, User
still
Login?

Any idea, how to Logout the User when the User click on the Close Button
of
Browser ?

I am using Sql Membership Provider for security.

Best Regards,

Luqman


< br>

" Mark Fitzpatrick"
"Mark Fitzpatrick"

当浏览器关闭时(或者当用户浏览某个网站时,没有通知),因此没有通知''处理这种

类型的事件并销毁cookie。
There is no notification that occurs when a browser is closed (or when a
user browses away from a web site) so there isn''t a way to handle this
type of event and destroy the cookie.



onunload

onbeforeunload


:) ??

onunload
onbeforeunload

:) ??


这篇关于IE 7显示用户在关闭并再次打开时仍然登录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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