{"id":3679,"date":"2014-03-29T07:49:05","date_gmt":"2014-03-29T07:49:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/asp-net-session-timeout-issue-collection-of-common-programming-errors\/"},"modified":"2014-03-29T07:49:05","modified_gmt":"2014-03-29T07:49:05","slug":"asp-net-session-timeout-issue-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/asp-net-session-timeout-issue-collection-of-common-programming-errors\/","title":{"rendered":"asp.net Session timeout issue-Collection of common programming errors"},"content":{"rendered":"<p>got a problem with my asp.net mvc project timing out after only a couple of minutes. It&#8217;s especially annoying because I&#8217;ve got quite a complex upload and import procedure which falls over when i get logged out. I currently use asp.net membership provider for authentication.<\/p>\n<p>I&#8217;ve tried a few things that I&#8217;ve seen on this site and others but to no avail. Here is what I have so far in the web config:<\/p>\n<pre><code>\n   \n      \n       \n\n\n       \n\n\n\n   \n\n\n\n<\/code><\/pre>\n<p>I was sure it was only a minute before being timed out before I added the sessionstate timeout, then it was upped to 2 mins, but can&#8217;t be 100%.<\/p>\n<p>I thought about using this:<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>&#8230;but not 100% sure how to implement it &#8211; anyone had any success with it, or know something else I could try?<\/p>\n<p>Thanks<\/p>\n<p>EDIT: I&#8217;m on a cloud hosting solution, but only have a control panel &#8211; no access to IIS<\/p>\n<p>UPDATE: I&#8217;ve now tried adding lifetime leasetime and it&#8217;s not made any difference:<\/p>\n<pre><code>  \n    \n      \n    \n  \n\n<\/code><\/pre>\n<p>UPDATE 2: Ok, I&#8217;ve edited the title and the web config values to reflect my latest effort, but I&#8217;m still struggling. I spoke to the hosting company who set the connection timeout to 20 minutes. However, it the session ends after 10 mins. Is there anything else I can try?<\/p>\n<p>I&#8217;m getting there, but I would like 20 minutes!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>got a problem with my asp.net mvc project timing out after only a couple of minutes. It&#8217;s especially annoying because I&#8217;ve got quite a complex upload and import procedure which falls over when i get logged out. I currently use asp.net membership provider for authentication. I&#8217;ve tried a few things that I&#8217;ve seen on this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3679","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3679"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3679\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}