get session ID in ASP.Net

后端 未结 6 1616
滥情空心
滥情空心 2021-02-02 07:31

how can I get IDs of all current sessions?

6条回答
  •  南方客
    南方客 (楼主)
    2021-02-02 08:17

    The answer depends partially on where you store session state. Assuming you use the default (inproc) then you can maintain a list of current session ids using the Session_Start and Session_End events in global.asax.

提交回复
热议问题