Results 1 to 12 of 12

Thread: how to kill an asp.net session for logout page??

  1. #1
    Registered User
    Join Date
    Nov 05
    Posts
    206

    how to kill an asp.net session for logout page??

    i was just wondering, how do i completely terminate a asp.net session to effectivly create a logout.aspx page??

    Thanks, Justin

  2. #2
    Banned
    Join Date
    Nov 05
    Posts
    2,367

    Re: how to kill an asp.net session for logout page??


  3. #3
    Junior Member
    Join Date
    Sep 05
    Posts
    29

    Re: how to kill an asp.net session for logout page??

    Hi
    You can give "session.abandon()".you can give in the onclick event of the LOGOUT button from the Server side page also.

    I think it would help for you.

    Thanks !
    Thiyagarajan.N

  4. #4
    ASP.NET Moderator mendhak's Avatar
    Join Date
    Feb 02
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: how to kill an asp.net session for logout page??

    From where? You could even run the iisreset command.

  5. #5
    Moderator.NET kleinma's Avatar
    Join Date
    Nov 01
    Location
    NJ - USA (Near NYC)
    Posts
    23,021

    Re: how to kill an asp.net session for logout page??

    Quote Originally Posted by mendhak
    From where? You could even run the iisreset command.
    mend is that a joke or am I missing something?
    Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
    PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!!
    * If you found a post useful then please Rate it! * DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!

    Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
    ZerosAndTheOne.com
    -=Matt=-

  6. #6
    ASP.NET Moderator mendhak's Avatar
    Join Date
    Feb 02
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: how to kill an asp.net session for logout page??

    Start > Run > IISReset => clears session variables.

    Cleared session variables => Get the login page.

  7. #7
    Moderator.NET kleinma's Avatar
    Join Date
    Nov 01
    Location
    NJ - USA (Near NYC)
    Posts
    23,021

    Re: how to kill an asp.net session for logout page??

    ok yeah i get that.. but since he said he was trying to make a logout.aspx page, I assume this is something he wants for a production app, like when a user hits a logout link on the site.
    Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
    PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!!
    * If you found a post useful then please Rate it! * DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!

    Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
    ZerosAndTheOne.com
    -=Matt=-

  8. #8
    ASP.NET Moderator mendhak's Avatar
    Join Date
    Feb 02
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: how to kill an asp.net session for logout page??

    I assumed too much. I sometimes have to use iisreset, so... never mind.

  9. #9
    Moderator.NET kleinma's Avatar
    Join Date
    Nov 01
    Location
    NJ - USA (Near NYC)
    Posts
    23,021

    Re: how to kill an asp.net session for logout page??

    i just thought there was some weird trick I didn't know about
    Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
    PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!!
    * If you found a post useful then please Rate it! * DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!

    Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
    ZerosAndTheOne.com
    -=Matt=-

  10. #10
    Fanatic Member
    Join Date
    Jun 05
    Posts
    625

    Re: how to kill an asp.net session for logout page??

    Session.Clear() works, but in my app I want to save some session variables while erasing others so I erase the login values directly:

    Session("Userid") = Nothing

    Like that..

  11. #11

  12. #12
    Registered User
    Join Date
    Nov 05
    Posts
    206

    Re: how to kill an asp.net session for logout page??

    well, thanks for the feedback guys :P and yer the session.clear() is what i needed. Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •