Session abandon by SessionID RRS feed

  • Question

  • User-891142405 posted



    I am just asking if it is possible to delete a session by a session id. Usually I call HttpContext.Current.Session.Abandon() when a user wants to logout itself. Now I want to build a page which allows a user only to be logged in once a time. It should be impossible that one user account is logged in through more browsers or computers at the same time.

    If a user is logged in and another login request from the same account comes in, then the first session should be killed. I need this scenario because of licence limitations. Any idea how I can solve this? My idea was that I store the session ids in a database. Then I could lookup the id and call a method like session.Abandon(id), but I did not find such a method...




    Tuesday, April 7, 2009 2:46 AM


All replies