开发者

Kill session in C# (asp), if I have ID of session [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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜