asp中SESSION 具体用法

来源:百度知道 编辑:UC知道 时间:2024/05/21 07:51:31
主要是用于后台登陆,可以防止在没有进行LOgin.ASP登陆的情况下,
用Session跳转到登陆页面.

<%
if session("name")="" then

response.write "<script language=JavaScript>{window.alert('对不起,您已经长时间未活动,或者您尚未登陆,请点确定后重新登陆,谢谢!');window.location.href='login.asp';}</script>"
response.end

end if
%>