Assuming you are using Forms Authentication... Set the timeout property to an appropriate value for your application.
https://msdn.microsoft.com/en-us/library/1d3t3c61(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/system.web.configuration.formsauthenticationconfiguration.timeout(v=vs.110).aspx