0
votes

my requirement is that can we code in such a way that there will be no timeout unless n until we logout....

in my project client needs that they will have ideal time but after that much time too they should not redirect to login page, they want it as unlimited session or 8 to 9 hours.

If user has logged in and opened any page in my website and does nothing for 20 mins. Now if he selects any thing from menu or clicks any button he is redirected to login page.

I can't change the time-out settings for the IIS application pool.

I tried following ways 1. i have wrote in config file as

<sessionState cookieless="false" regenerateExpiredSessionId="true" timeout="129600" />

3. i also tried in Global.asax file protected void Session_Start(object sender, EventArgs e) { Session.Timeout = 480; }

None of the above worked for me.

2

2 Answers

0
votes

Set your session time out in IIS

Increase session time out

0
votes

I had the problem same like yours. I did some research and final I got this.I tried to set the session time out to set in 3 hours. I used web.config and IIS session management section.If you change session time out in web.config it automatically appear in IIS session management but the problem is idle timeout is on or off no matter after the idle timeout time session is destroyed.So I changed the idle timeout to same as my session validate period until now there is no problem. I think you need to change it in IIS otherwise it will not work.