...................Session gets end............

Posted by Nismeh under ASP.NET on 1/16/2014 | Points: 10 | Views : 549 | Status : [Member] | Replies : 1
Hi,

In my application I've set my page to get reloaded every 5 minxs. Still sometime session gets ended. Can any one suggest?

IT KNOWLEDGE IS APPLIED KNOWLEDGE
So Just Do It



Responses

Posted by: kgovindarao523-21772 on: 1/16/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

In Web.config
put these lines of code
<authentication mode=”Forms”>

<forms name=”MyAuth” timeout=”60? protection=”All” loginUrl=”YOUR PAGE” slidingExpiration=”true” />

</authentication>

<sessionState mode=”InProc” cookieless=”false” timeout=”60? />


Reference Link:
http://dotnetoffice.wordpress.com/2012/09/21/preventing-session-timeouts-in-c-asp-net/

Thank you,
Govind

Nismeh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response