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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Session End Page

Session End Page

Scheduled Pinned Locked Moved ASP.NET
4 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.
  • A Offline
    A Offline
    abdelhameed81
    wrote on last edited by
    #1

    hi all, i want to redirect the user to a page that indicates that the session has expired. i added code to the session_end event in the Global.asax class, but it did not work plz send me the response asap thanks abdelhameed81

    T S 2 Replies Last reply
    0
    • A abdelhameed81

      hi all, i want to redirect the user to a page that indicates that the session has expired. i added code to the session_end event in the Global.asax class, but it did not work plz send me the response asap thanks abdelhameed81

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      You need to use a javascript timer to redirect the user. The Session End Event does not fire on a postback so the browser is not redirected. The Session End Event usually occurs when a "session" hasn't posted back in 20 minutes or however long.

      GameFly free trial

      1 Reply Last reply
      0
      • A abdelhameed81

        hi all, i want to redirect the user to a page that indicates that the session has expired. i added code to the session_end event in the Global.asax class, but it did not work plz send me the response asap thanks abdelhameed81

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        Another way is create a thread that will check Session is there or not

        Thanks and Regards Sandeep If you want something you never had, do something you have never done!

        B 1 Reply Last reply
        0
        • S Sandeep Akhare

          Another way is create a thread that will check Session is there or not

          Thanks and Regards Sandeep If you want something you never had, do something you have never done!

          B Offline
          B Offline
          badgrs
          wrote on last edited by
          #4

          Thats great, and how would you propose to redirect the user from this thread?

          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