获取所有会话ID [英] get all session ids
本文介绍了获取所有会话ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从服务器获取所有会话ID?我必须检查特定的会话是否存在.
how to get all the session ids from the server?i have to check whether a particular session exists.
推荐答案
请看以下文章:
检索所有活动会话数据 [使用ASP.NET跟踪访问者 [
Have a look at these articles:
Retrieve All Active Sessions Data[^]
Tracking Visitors with ASP.NET[^]
获取当前用户的会话ID
To get session id of the current user
HttpSessionState ss = HttpContext.Current.Session;
HttpContext.Current.Session["test"] = "test";
HttpContext.Current.Response.Write(ss.SessionID);
要检查惠特尔当前会话是否过期
To check wheather current session expire
check Session["test"]==null
这篇关于获取所有会话ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文