Forms Authentication and Logging Out

Discussion in 'ASP .Net Security' started by paul reed, Sep 28, 2003.

  1. paul reed

    paul reed Guest

    Hi,

    I am using Forms Authentication and it is working just great...someone tries
    to access a form without logging in, they get routed to my login screen.

    However, how do I implement logging out? I have a logout menu option where I
    want to fire and ASPX page that does...what? What to do I null out or reset
    so it requires them to log back in?

    Thanks in advance,

    Regards...Paul Reed
     
    paul reed, Sep 28, 2003
    #1
    1. Advertising

  2. You just simple call FormsAuthentication.SignOut()

    /Fredrik Normén NSQUARED2


    >-----Original Message-----
    >Hi,
    >
    >I am using Forms Authentication and it is working just

    great...someone tries
    >to access a form without logging in, they get routed to

    my login screen.
    >
    >However, how do I implement logging out? I have a logout

    menu option where I
    >want to fire and ASPX page that does...what? What to do I

    null out or reset
    >so it requires them to log back in?
    >
    >Thanks in advance,
    >
    >Regards...Paul Reed
    >
    >
    >.
    >
     
    Fredrik Normén NSQUARED, Sep 28, 2003
    #2
    1. Advertising

  3. paul reed

    Paul Reed Guest

    Fredrik,

    Thanks so much...that did the trick.

    Paul

    >-----Original Message-----
    >You just simple call FormsAuthentication.SignOut()
    >
    >/Fredrik Normén NSQUARED2
    >
    >
    >>-----Original Message-----
    >>Hi,
    >>
    >>I am using Forms Authentication and it is working just

    >great...someone tries
    >>to access a form without logging in, they get routed to

    >my login screen.
    >>
    >>However, how do I implement logging out? I have a logout

    >menu option where I
    >>want to fire and ASPX page that does...what? What to do

    I
    >null out or reset
    >>so it requires them to log back in?
    >>
    >>Thanks in advance,
    >>
    >>Regards...Paul Reed
    >>
    >>
    >>.
    >>

    >.
    >
     
    Paul Reed, Sep 29, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric
    Replies:
    2
    Views:
    1,562
    Tommy
    Feb 13, 2004
  2. - Steve -

    Logging Off Forms Based Authentication

    - Steve -, Jun 18, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    362
    S. Justin Gengo
    Jun 18, 2004
  3. Rod
    Replies:
    1
    Views:
    490
    Patrick Olurotimi Ige
    Dec 21, 2004
  4. Ethan Chan
    Replies:
    1
    Views:
    182
    Gabriel Lozano-Morán
    Apr 25, 2005
  5. Eric
    Replies:
    2
    Views:
    641
Loading...

Share This Page