In order to set the session timed out limit in ASP one can use below mentioned code:

<%
Session.Timeout = 240
Response.Write("The timeout is: " & Session.Timeout)
%>

Thanks.