asp.net c# set session timeout

C#
    <configuration>
      <system.web>
         <sessionState timeout="20"></sessionState>
      </system.web>
    </configuration>
Source

Also in C#: