Last post Jun 15, 2014 06:12 AM by Pradeep Kr. Sharma
Jun 15, 2014 05:34 AM|wishrant|LINK
I have set session time out in configuration file but it is now working according to set value in configuration file.
Jun 15, 2014 05:43 AM|PatriceSc|LINK
What if show the Session.Timeout on a test page ? If this is the not the value you expect, you likely have some problem in how you configured the value. If it's ok, it is another problem such as loosing the current session because of an app pool restart.
Jun 15, 2014 06:12 AM|Pradeep Kr. Sharma|LINK
Configure session value in all the places. This way you can make sure whether it is problem because of session issue or something else. So i suggest you to configure session in all places:
Change Session value in IIS which is by default 20 minutes. Session value can be change in below three ways
1. In Web.config like.. <sessionState mode="InProc" timeout="60" cookieless="true" />
2. In C# Code you can set timeout like...... Session.TimeOut=60;
3. In IIS Setting, If your application is running on the IIS then check the session timeout inside the IIS setting
where the default session time out is 20 Min. Change that according to your requirement.
Follow are the steps to change the default session time in IIS. 1. Click on Start --> RUN --> type INETMGR and press enter. 2. Navigate to your application node, right click on it and then select "Properties". 3. In the 'Directory' tab click "Create" button, then click "OK". 4. Click on the "Home Directory" tab, then "Configuration". 5. Click on the "Options" tab. 6. Increase the "Session timeout" value and click "OK".
Application user Session will be expire:
* If the application user is idle from a long time (idle time is more than the define session timeout time). OR
* IIS / Application pool get restarted.