c# - asp.net 中的内容而不是 java 中的 httpsessionlistener

标签 c# java asp.net

I am new to asp.net. I want to map the end user status,user is online or offline(here i considered offline due to direct PC shutdown case also).In java I use httpsessionlistener but I don't understand what should I use in asp.net and how to map that user is offline ?? Please help me. Which method should I use?

最佳答案

您应该在 Global.asax 中处理 Session_End 事件:-

http://msdn.microsoft.com/en-us/library/ms178581.aspx

关于c# - asp.net 中的内容而不是 java 中的 httpsessionlistener,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20511819/

相关文章:

c# - 创建对象的可比较且灵活的指纹

c# - 在连接词上拆分字符串

缩小窗口时 JavaFX backgroundImage 消失

java - 使用java模拟并发更新计数

.net - 管理 IIS7 中的并发连接

c# - 如何静态访问 .resx 文件

c# - 无法将 DBNull.Value 转换为类型 'System.Double' 。请使用可空类型

java - 如何将 JMenuBar 添加到 JTextArea?

asp.net - .NET 中的 Tcp/Ip 套接字连接

c# - 用户在 asp.net MVC 3 url 中输入正斜杠 "/"