Note that there are some explanatory texts on larger screens.

plurals
  1. POreasons for being logged out before actual timeout in Forms Authentication
    primarykey
    data
    text
    <p>I have a <code>asp.net MVC 3.0</code> website hosted on a <strong>subdomain</strong> of a main website . <code>Asp.net</code> version is set to <code>.Net 4.0 integrated pipeLine</code> . </p> <p>the Forms Authentication settings is as below :</p> <pre><code>&lt;authentication mode="Forms"&gt; &lt;forms cookieless="UseCookies" defaultUrl="~/home" enableCrossAppRedirects="false" path="/" requireSSL="false" loginUrl="~/account/login" protection="All" timeout="120" slidingExpiration="true" name=".SubDomainAuthCookie"&gt;&lt;/forms&gt; &lt;/authentication&gt; </code></pre> <p>but it <strong>logs</strong> me <strong>out</strong> just <strong>after few minutes</strong> each time ! the <strong>Host Admins</strong> say that is <strong>maybe</strong> because of <strong>improper coding</strong> or <strong>heavy tasks</strong> that cause the application pool <strong>to reset</strong> , but it's a <strong>simple mvc</strong> website with <strong>EF ORM</strong> . I can't figure out what to do ! what should I look for as possible cause of this situation ?</p> <p><strong>Update :</strong></p> <p>after checking <code>Application_Start</code> , I find that it's the <strong>problem</strong> , I logged <code>Application_Start()</code> and the result is <strong>whenever</strong> I'm being logged out , a log is <strong>added</strong> .</p> <pre><code>12/6/2012 12:14:03 PM ==&gt; Application started 12/6/2012 12:16:35 PM ==&gt; Application started 12/6/2012 12:22:59 PM ==&gt; Application started </code></pre> <p>strange ,but real . there is nothing complicated or heavy in the logic ! Could EF be the problem , does it consume a lot of memory/CPU that cause application pool to reset ? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload