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 Automatically Expires After 55 to 60 Seconds In ASP.NET MVC With WEB API

Session Automatically Expires After 55 to 60 Seconds In ASP.NET MVC With WEB API

Scheduled Pinned Locked Moved ASP.NET
asp-nethelpcsharpcomsysadmin
4 Posts 4 Posters 2 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.
  • U Offline
    U Offline
    User 11541310
    wrote on last edited by
    #1

    I have issue that is Session Automatically Expires even session time-out sets to it maximum level. I am developing my web application in a ASP.NET MVC 5 With WEB API . There is no issue when I run it in local but when I publish it on web it session automatically expires within 55-60 seconds. Hosting provider also says that there is no issue with their server. I can not find any error and don't know how to configure it . My < system.web > configuration in web.config file is as follow . Check this link - http://pastebin.com/uvPVKDQU

    V J U 3 Replies Last reply
    0
    • U User 11541310

      I have issue that is Session Automatically Expires even session time-out sets to it maximum level. I am developing my web application in a ASP.NET MVC 5 With WEB API . There is no issue when I run it in local but when I publish it on web it session automatically expires within 55-60 seconds. Hosting provider also says that there is no issue with their server. I can not find any error and don't know how to configure it . My < system.web > configuration in web.config file is as follow . Check this link - http://pastebin.com/uvPVKDQU

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      Try having a file system watcher and see if web.config or some application files are being inadvertently modified (at least by timestamp) by indexing service, virus or other scanning service.

      Vasudevan Deepak Kumar Personal Homepage You can not step into the same river twice.

      1 Reply Last reply
      0
      • U User 11541310

        I have issue that is Session Automatically Expires even session time-out sets to it maximum level. I am developing my web application in a ASP.NET MVC 5 With WEB API . There is no issue when I run it in local but when I publish it on web it session automatically expires within 55-60 seconds. Hosting provider also says that there is no issue with their server. I can not find any error and don't know how to configure it . My < system.web > configuration in web.config file is as follow . Check this link - http://pastebin.com/uvPVKDQU

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        The session is controlled and stored by the web server, not the web app. Or you can have an SQL server like SQL Server Express store session values as well. The Web App, Webforms or MVC is able to add, set and delete session values. The web.config allows you to override the settings of IIS server. In other words, you can almost completely setup the IIS Web site environment within the Web.Config file. You have to run test in order to isolate the problem area, use critical thinking here. So make a Session value called Test, put it on the home page, and run the page once an hour over 12 hours or so, and see if the value persist. Response.Write the value or put it in a textbox at the top of the page. If the value persist, then it's your MVC app.

        httpcontext.current.session.add("test", "persist")

        txt_text.text = httpcontext.current.session("test")

        1 Reply Last reply
        0
        • U User 11541310

          I have issue that is Session Automatically Expires even session time-out sets to it maximum level. I am developing my web application in a ASP.NET MVC 5 With WEB API . There is no issue when I run it in local but when I publish it on web it session automatically expires within 55-60 seconds. Hosting provider also says that there is no issue with their server. I can not find any error and don't know how to configure it . My < system.web > configuration in web.config file is as follow . Check this link - http://pastebin.com/uvPVKDQU

          U Offline
          U Offline
          User 11525252
          wrote on last edited by
          #4

          cookieless="true " once try this

          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