First
<system.web>
<sessionState mode="InProc" cookieless="true"timeout="60"/>
</sessionState>
</system.web>
</configuration>
Second
Go to global.asax file and write the code below:
void Session_Start(object sender, EventArgs e)
{
Session.Timeout = 60;
}