You can do at web server IIS level as:
You can get to the setting by: Open IIS | Properties on Web Site | ASP.NET tab | Edit Configuration... (or Edit Global Configuration to change for more than one site) | State Management tab.
Here you will see a textfield with a label that says "Session timeout (minutes) with a default value of 20 minutes.