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 continues after the Session times out

Session continues after the Session times out

Scheduled Pinned Locked Moved ASP.NET
help
3 Posts 3 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.
  • P Offline
    P Offline
    Praveen_S
    wrote on last edited by
    #1

    Hi, I have developed a web application and have set session timeout to 20 min. Now here is the problem, I open a web page and does not take any action on it for about 1 hr.After 1 hr I take a action on that page and application handles it.I face this problem for few pages in application. I am not able to get why this problem occurs. Thanks

    Y F 2 Replies Last reply
    0
    • P Praveen_S

      Hi, I have developed a web application and have set session timeout to 20 min. Now here is the problem, I open a web page and does not take any action on it for about 1 hr.After 1 hr I take a action on that page and application handles it.I face this problem for few pages in application. I am not able to get why this problem occurs. Thanks

      Y Offline
      Y Offline
      yogsworld
      wrote on last edited by
      #2

      You also set the property in global.asax.cs file void Session_Start(object sender, EventArgs e) { Session.Timeout = 20; } bye..

      1 Reply Last reply
      0
      • P Praveen_S

        Hi, I have developed a web application and have set session timeout to 20 min. Now here is the problem, I open a web page and does not take any action on it for about 1 hr.After 1 hr I take a action on that page and application handles it.I face this problem for few pages in application. I am not able to get why this problem occurs. Thanks

        F Offline
        F Offline
        Frank Kerrigan
        wrote on last edited by
        #3

        It is likely that a new session is being created when you hit the page after the 20min time out and its being posted back. Place this at the top of your Load.Page or place other code in your Global.aspx Session Start. Note: Session End will not effect client page view. if (Session.IsNewSession) { // New Session // Take your pick Server.Transfer("Default.aspx"); Response.Redirect("Default.aspx"); } Look where you want to go not where you don't want to crash. Bikers Bible -- modified at 6:44 Tuesday 25th April, 2006

        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