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. Session Timeout - ASP.NET 2.0

Session Timeout - ASP.NET 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsecurityhelp
2 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.
  • S Offline
    S Offline
    seee sharp
    wrote on last edited by
    #1

    Hello, In ASP.NET 2.0 application while using Forms Authentication, if user sees Login page due to session timout, is there anyway I can find out at login page that user came to this page because of session timeout and can show some message to user that he/she is redirected to this page because of Session timeout. Appreciate any help in this regard.

    - ashish

    M 1 Reply Last reply
    0
    • S seee sharp

      Hello, In ASP.NET 2.0 application while using Forms Authentication, if user sees Login page due to session timout, is there anyway I can find out at login page that user came to this page because of session timeout and can show some message to user that he/she is redirected to this page because of Session timeout. Appreciate any help in this regard.

      - ashish

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there. One of the ways you can do is to use the Session Start event, and in the handler you can check if the authentication cookie is existing or not. If not, this is a new user, otherwise the existing user is kicked out due to the session time out.

      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