Windows上的注销用户关闭.... [英] Logout User on Windows close....

查看:150
本文介绍了Windows上的注销用户关闭....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想在我的项目中实现这样的功能,无论何时用户登录,如果他关闭窗口而没有注销,那么他应该注销,我也想一次改变数据库中的状态..我已经尝试过onunload和onbeforeunload但它只影响20分钟后的超时会话时间...所以如何实现这个请给我建议...即时等待...... ..


提前感谢...


-malav。

解决方案

在完全相同的事情上查看您之前的主题:
http:// bytes .com / forum / thread794330.html



在完全相同的事情上查看您之前的帖子:
< a href =http://bytes.com/forum/thread794330.html\"target =_ blank> http://bytes.com/forum/thread794330.html


HI电镀,

我知道我以前发过同样的事情,但我的问题仍未解决,我也试过onbeforeunload但仍然是状态仅在20分钟后的会话超时时间后更改...那么???的解决方案是什么?


那么你在使用ununload函数做什么?

您是否正在向服务器发送消息告诉他们Session.Abandon()?


Hi,

I want to implement such a functionality in my project that whenever user is login and if he closes the window without logout then he should be logout and i also wants to change the status in database at a time.. i have tried the onunload and onbeforeunload but it affects only after timeout session period that is after 20 minutes... so how to implement this please give me suggestion... i m waiting.....

thanks in advance...


-malav.

解决方案

See your previous thread on the exact same matter:
http://bytes.com/forum/thread794330.html


See your previous thread on the exact same matter:
http://bytes.com/forum/thread794330.html



HI plater,
I know that i have posted same thing before but still my problem is not solved, i also tried onbeforeunload but still the status changes only after session timeout period that is after 20 minutes... so what is the solution of that ???


Well what are you doing with your ununload function?
Are you sending a message back to your server telling them to Session.Abandon()?


这篇关于Windows上的注销用户关闭....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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