Terminating a authenticated user

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kristofer Liljeblad

    #1

    Terminating a authenticated user

    Hi,

    1. How can I "terminate" an authenticated user? (I would like the server to
    redirect the user to the login page again. I'm using "forms
    authentication" .)

    2. Is it possible to enumerate all sessions on a IIS? Is it possible to
    enumerate all authenticated users on a IIS (without the use of global.asax
    and session_start and session_end)?

    /Kristofer


  • Onur Bozkurt

    #2
    Re: Terminating a authenticated user

    You can use SignOut Method.

    "Kristofer Liljeblad" <kristoferdonts pam@mapaz.com> wrote in message
    news:uZb7CVwPDH A.2432@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi,
    >
    > 1. How can I "terminate" an authenticated user? (I would like the server[/color]
    to[color=blue]
    > redirect the user to the login page again. I'm using "forms
    > authentication" .)
    >
    > 2. Is it possible to enumerate all sessions on a IIS? Is it possible to
    > enumerate all authenticated users on a IIS (without the use of global.asax
    > and session_start and session_end)?
    >
    > /Kristofer
    >
    >[/color]


    Comment

    • James J. Foster

      #3
      Re: Terminating a authenticated user

      As for terminating an authenticated user, or "logging out", look at:

      System.Web.Secu rity.FormsAuthe ntication.SignO ut();

      --
      James J. Foster, DotNetCoders



      "Kristofer Liljeblad" <kristoferdonts pam@mapaz.com> wrote in message
      news:uZb7CVwPDH A.2432@TK2MSFTN GP10.phx.gbl...[color=blue]
      > Hi,
      >
      > 1. How can I "terminate" an authenticated user? (I would like the server[/color]
      to[color=blue]
      > redirect the user to the login page again. I'm using "forms
      > authentication" .)
      >
      > 2. Is it possible to enumerate all sessions on a IIS? Is it possible to
      > enumerate all authenticated users on a IIS (without the use of global.asax
      > and session_start and session_end)?
      >
      > /Kristofer
      >
      >[/color]


      Comment

      • Kristofer Liljeblad

        #4
        Re: Terminating a authenticated user

        Guess I wasn't as clear as I thought ;-) Thanks for the quick reply anyway.

        I knew about the SignOut method, but how do I sign out another user. I have
        this administrative tool that I've coded. I would like to sign out all or
        some members at some times.

        So I guess I can not remove the authentication ticket (cause I don't have
        access to it). I have to do it on the server side, but how?

        /Kristofer

        "Onur Bozkurt" <onur.bozkurt@s ofthome.net> wrote in message
        news:%23vASmZwP DHA.2476@TK2MSF TNGP10.phx.gbl. ..[color=blue]
        > You can use SignOut Method.
        >
        > "Kristofer Liljeblad" <kristoferdonts pam@mapaz.com> wrote in message
        > news:uZb7CVwPDH A.2432@TK2MSFTN GP10.phx.gbl...[color=green]
        > > Hi,
        > >
        > > 1. How can I "terminate" an authenticated user? (I would like the server[/color]
        > to[color=green]
        > > redirect the user to the login page again. I'm using "forms
        > > authentication" .)
        > >
        > > 2. Is it possible to enumerate all sessions on a IIS? Is it possible to
        > > enumerate all authenticated users on a IIS (without the use of[/color][/color]
        global.asax[color=blue][color=green]
        > > and session_start and session_end)?
        > >
        > > /Kristofer
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...