
Originally Posted by
webcosmo
you should check the authentication token and session both. if either is not set properly logout.
depending on your settings, your session could be alive lot longer then the authentication ticket or vice versa.
you could consider using sliding expiration for auth tokens along with DB session storage if you wanna give user long period of active time.
What do you mean by authentication token? Some users complained that they are even active for less than 5 mins...
Anyway, here's whats in the web config.
Code:
<authentication mode="Forms">
<forms loginUrl="logon.aspx" protection="All" name="authCookie" timeout="60" path="/">
</forms>
</authentication>
I will try to add slidingExpiration="true" and see if we will still get some complains althought we have implemented keepalive in the basepage.
HTML Code:
<div style="display:none">
<iframe id="frmKeepAlive" width="1px" height="1px" frameborder="0" src="//xxxxx.net/xxxxx/keepalive.htm">
</iframe>
</div>
where the keepalive.htm reloads every 5 mins. So before even the session expires. Server knows that the user is still active.
I will also change the timeout to 60 and see if this will make any difference.
HTML Code:
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/>
Thank you guys for all your reply...
Bookmarks