Session Automatically Expires After 55 to 60 Seconds In ASP.NET MVC With WEB API
-
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
-
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
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.
-
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
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")
-
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
cookieless="true " once try this