I have added code in web.config file for session of 2 hours.
<sessionState mode="InProc" cookieless="false" timeout="120">
</sessionState>
It works on local but when the code is published session expires in just 10-15 minutes.
Is there any other way to configure?