雌激素软膏有副作用吗:如何实现session 超时转向另一页

来源:百度文库 编辑:神马品牌网 时间:2024/05/02 18:25:51
用asp做的网站,用的是框架的结构,如何让它在session.timeout之后实现转向到一个指定的页面呢?
请给出详细的代码,或者详细的解释,或这可以运行的例子
谢谢...

if session("yourname")="" then
Response.Write"<script language=javascript>alert(""你还没有登陆!或登陆超时!"");</script>"
response.write "<script language=javascript>parent.location.href=login.asp';</script>"
response.End()
end if

这样写
if session("varname")="" then response.Redirect("index.asp")
超时以后会清空变量,只要判断是不是为空就可以了