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. Avoid Session clear

Avoid Session clear

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
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.
  • D Offline
    D Offline
    deepthy p m 0
    wrote on last edited by
    #1

    [when the session is null we are by default directed to home page.] At first when we login and perform transactions we carry the session values from one page to second page.At this second page if we remain idle for some time, the session automatically clears off. This causes us to reach back to home page . How to avoid this? We have included the following code in the web.config file,but still we are having the same problem.

    R A 2 Replies Last reply
    0
    • D deepthy p m 0

      [when the session is null we are by default directed to home page.] At first when we login and perform transactions we carry the session values from one page to second page.At this second page if we remain idle for some time, the session automatically clears off. This causes us to reach back to home page . How to avoid this? We have included the following code in the web.config file,but still we are having the same problem.

      R Offline
      R Offline
      ritzy pal
      wrote on last edited by
      #2

      apart from web.config you also to need to make changes in IIS

      S 1 Reply Last reply
      0
      • D deepthy p m 0

        [when the session is null we are by default directed to home page.] At first when we login and perform transactions we carry the session values from one page to second page.At this second page if we remain idle for some time, the session automatically clears off. This causes us to reach back to home page . How to avoid this? We have included the following code in the web.config file,but still we are having the same problem.

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

        deepthy.p.m wrote:

        following code in the web.config

        What ? The behavior as per design I guess.Your sessions might be timing out. Read this [^] And many more:[^]

        1 Reply Last reply
        0
        • R ritzy pal

          apart from web.config you also to need to make changes in IIS

          S Offline
          S Offline
          ssramvinay
          wrote on last edited by
          #4

          hi, the default time out for session is 20 sec r 5 min pertains up on the versions.Dont use it on webconfig.use the session code at global.asax file.Let me know if u don know the script.i hope U could try it.

          Ramprathap S.S

          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