Finalizing all sessions of all users

Last post 05-13-2008 3:14 PM by Letícia. 2 replies.

Sort Posts:

  • Finalizing all sessions of all users

    05-13-2008, 8:40 AM
    • Loading...
    • Letícia
    • Joined on 06-22-2007, 4:30 PM
    • Posts 39

    Hello everyone,

    I'd like to know how do I do to finalize all sessions of all users, via software. I researched and found Session.abandon, but it seems to close all the sessions of the current user only.

    Is there any way to do what I want? 

     

  • Re: Finalizing all sessions of all users

    05-13-2008, 9:58 AM
    Answer
    • Loading...
    • ely79
    • Joined on 03-17-2008, 1:56 PM
    • Denver, Colorado
    • Posts 187

    I think the only way to do this is to reset the asp.net application.  The following line of code will do this for you, but be aware that it might have some other consequences that you don't want such as losing any application and cache variables:

    HttpRuntime.UnloadAppDomain();

  • Re: Finalizing all sessions of all users

    05-13-2008, 3:14 PM
    • Loading...
    • Letícia
    • Joined on 06-22-2007, 4:30 PM
    • Posts 39

    Thanks

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter