开发者

Kill session in C# (asp), if I have ID of session [duplicate]

开发者 https://www.devze.com 2023-04-02 19:15 出处:网络
This question already has answers here: 开发者_运维问答 Closed 11 years ago. Possible Duplicate:
This question already has answers here: 开发者_运维问答 Closed 11 years ago.

Possible Duplicate:

How to Kill A Session or Session ID (ASP.NET/C#)

If I have the ID of all sessions in a aray, is it possible to verify that the session has timed out and kill it on that basis?


Use HttpSessionState.Abandon() method to kill selected session...

And if you want to check session timeouts you can add last usage timestamp to your sessions array, update it on session requests in global.asax handlers...

0

精彩评论

暂无评论...
验证码 换一张
取 消