Kill session in C# (asp), if I have ID of session [duplicate]
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...
精彩评论