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. how to logout session handle

how to logout session handle

Scheduled Pinned Locked Moved ASP.NET
helptutorial
5 Posts 4 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.
  • N Offline
    N Offline
    nawalage
    wrote on last edited by
    #1

    how to handle the froward key and back key of IE when user is logout. If user logout, but user can go to welcome page again using back key without using login page.how to handle this.please help me to control this prob............:confused:

    D B 2 Replies Last reply
    0
    • N nawalage

      how to handle the froward key and back key of IE when user is logout. If user logout, but user can go to welcome page again using back key without using login page.how to handle this.please help me to control this prob............:confused:

      D Offline
      D Offline
      Dayekh
      wrote on last edited by
      #2

      The first line is so that the user cnnot click on 'Back' Button. The second line is so that the user must login again to gain access: Response.Cache.SetCacheability(HttpCacheability.NoCache) If Request.QueryString("Logout") = "1" Then Session.Abandon() Response.Redirect("URL") End If Logout Link: Logout

      R 1 Reply Last reply
      0
      • D Dayekh

        The first line is so that the user cnnot click on 'Back' Button. The second line is so that the user must login again to gain access: Response.Cache.SetCacheability(HttpCacheability.NoCache) If Request.QueryString("Logout") = "1" Then Session.Abandon() Response.Redirect("URL") End If Logout Link: Logout

        R Offline
        R Offline
        RaviJJain
        wrote on last edited by
        #3

        i have tried your code but below line dont work any other way to stop the back button? Response.Cache.SetCacheability(HttpCacheability.NoCache)

        D 1 Reply Last reply
        0
        • R RaviJJain

          i have tried your code but below line dont work any other way to stop the back button? Response.Cache.SetCacheability(HttpCacheability.NoCache)

          D Offline
          D Offline
          Dayekh
          wrote on last edited by
          #4

          The following code: Response.Cache.SetCacheability(HttpCacheability.NoCache) should be in the Page Load event. Is your in the Page Load event? : Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Response.Cache.SetCacheability(HttpCacheability.NoCache) That's how my code is. If it doesn't work, then I'm not sure how to change it :~

          1 Reply Last reply
          0
          • N nawalage

            how to handle the froward key and back key of IE when user is logout. If user logout, but user can go to welcome page again using back key without using login page.how to handle this.please help me to control this prob............:confused:

            B Offline
            B Offline
            Britney S Morales
            wrote on last edited by
            #5

            Write these meta tags lines over HTML code page :-D

            keep Learning and you never will be out of date...

            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