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 become out

session become out

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

    in web config file i am declaring session time out ="1444" but it is not working, after some time session become expire my code is as give below.. <compilation debug="true"> <assemblies> <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> </assemblies> </compilation> <sessionState mode="InProc" cookieless="false" timeout="1444" > </sessionState> any one know plz tell me

    krishna veer singh

    L 1 Reply Last reply
    0
    • K krishnaveer

      in web config file i am declaring session time out ="1444" but it is not working, after some time session become expire my code is as give below.. <compilation debug="true"> <assemblies> <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> </assemblies> </compilation> <sessionState mode="InProc" cookieless="false" timeout="1444" > </sessionState> any one know plz tell me

      krishna veer singh

      L Offline
      L Offline
      Laddie
      wrote on last edited by
      #2

      You are storing the session in Inproc which is well known for the session loss. If you are using IIS 6 then possible reson could be that your worker process could have been recycled.(you can change it by going to the properties of the application pool of your application). You can store the session in StateServer to prevent such accidents

      Thanks Laddie Kindly rate if the answer was helpful

      K 1 Reply Last reply
      0
      • L Laddie

        You are storing the session in Inproc which is well known for the session loss. If you are using IIS 6 then possible reson could be that your worker process could have been recycled.(you can change it by going to the properties of the application pool of your application). You can store the session in StateServer to prevent such accidents

        Thanks Laddie Kindly rate if the answer was helpful

        K Offline
        K Offline
        krishnaveer
        wrote on last edited by
        #3

        plz tell me how can i change it by going to the properties of the application pool plz explain

        krishna veer singh

        L 1 Reply Last reply
        0
        • K krishnaveer

          plz tell me how can i change it by going to the properties of the application pool plz explain

          krishna veer singh

          L Offline
          L Offline
          Laddie
          wrote on last edited by
          #4

          Setp 1 : Go to your web application(VD) right click > properties find out the application pool name to which it is added. Step : Now go to that applicatio pool right click > properties > Recycling tab There are many versions to configure the recycling by minutes/per requests/Byy schedule etc. You can reconfigure this with your values and save it. (Note this will work only if you are using IIS 6)

          Thanks Laddie Kindly rate if the answer was helpful

          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