I have this code in my web.config:
<system.web>
<authentication mode="Windows" />
<sessionState timeout="300" />
</system.web>
Even though sessionstate timeout is 300. It just expires in 15-20 mins and session data is lost. My Application pool and everything has correct timeout set of 300 minutes. So I believe problem is with Windows authentication only. Secondly, if I just disable the Windows authentication and remove that line, it all works out fine (i.e my session data is preserved for long duration). What can be the problem?
Thanks in advance :)