How to get session using sessionID RRS feed

  • Question

  • User277293199 posted

    Hi all,


    I'm storing the session IDs of the logged-in users in a database, so I need to kill some sessions using the session Ids stored in the database, but unfortuently I'm not able to get any session using the seesion ID so that I can kill it, so please guys do you have any ideas about that issue?

    Sunday, March 20, 2011 6:06 AM


  • User614805505 posted


    Every user access to your application will own a session(with session enabled). And this session will only manage by that particular user. This means a user cannot kill other user session.

    If you want to kill an active session within a timeframe, you may set the sessionstate timeout value in the web.config. Please refer to http://msdn.microsoft.com/en-us/library/ms972429.aspx

    Hope this post help you.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, March 20, 2011 10:18 AM