session 的超时

代码:

<!DOCTYPE html>

<html>

<body>

 

<% 

response.write("<p>")

response.write("Default Timeout is: " & Session.Timeout & " minutes.")

response.write("</p>")

 

Session.Timeout=30

 

response.write("<p>")

response.write("Timeout is now: " & Session.Timeout & " minutes.")

response.write("</p>")

%>

 

</body>

</html>

结果:

Default Timeout is: 20 minutes.

Timeout is now: 30 minutes.

相关文章