Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Windows Authentication: Logout

Windows Authentication: Logout

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsecurity
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahmadlead
    wrote on last edited by
    #1

    Hi, I have a website where Windows Authentication is used to log in the site. I have used ASP.NET 2.0. I need to add a button "Logout" that will close the session and bring the windows authentication window in response to click event. Any Suggestion Please!

    V 1 Reply Last reply
    0
    • A ahmadlead

      Hi, I have a website where Windows Authentication is used to log in the site. I have used ASP.NET 2.0. I need to add a button "Logout" that will close the session and bring the windows authentication window in response to click event. Any Suggestion Please!

      V Offline
      V Offline
      Venk259
      wrote on last edited by
      #2

      In the Click Event of the Logout button call this FormsAuthentication.SignOut() FormsAuthentication.RedirectToLoginPage() First statement will destroy the authentication ticket, next statement will redirect to the page, which is specified in the authentication section of web.config file.

      A 1 Reply Last reply
      0
      • V Venk259

        In the Click Event of the Logout button call this FormsAuthentication.SignOut() FormsAuthentication.RedirectToLoginPage() First statement will destroy the authentication ticket, next statement will redirect to the page, which is specified in the authentication section of web.config file.

        A Offline
        A Offline
        ahmadlead
        wrote on last edited by
        #3

        But I have used Windows Authentication, not Form Authentication.

        A 1 Reply Last reply
        0
        • A ahmadlead

          But I have used Windows Authentication, not Form Authentication.

          A Offline
          A Offline
          ahmadlead
          wrote on last edited by
          #4

          HELP PLEASE...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups