In case someone else has same problem and got it solved, would appreciate share his solution:
Problem: I have website done in asp.net mvc3, the session expires often, between some seconds to max 5 minutes. In web.config I have set the timeout to 2880 min, I also set the sessionstate to stateserver. I also delete the timeouts to use the default ones, still problem:
<sessionState mode="StateServer"></sessionState>
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn"/>
</authentication>
I made a sample website that only contains the login functions and some database interaction to simulate the environment, then i got a more stable timeout of 2 min 50 secs (tested 9 times), which still is not correct since I set 2880 min in the web.config.
Inside the code when user login, I create an AuthenticateTicket and save it to cookies, then in secured pages I checked for User.Identity and the controllers have the filter [Authorize], so when session expires I'm sent to login page.
On the same hosting server I have other older apps using .NET 3.5 web forms, and for them the session is ok, only for new mvc3 and mvc3 the session is expiring often. Thanks for any clue you can give.