如何用ASP定义退出登录后自动刷新

来源:百度知道 编辑:UC知道 时间:2024/05/05 18:12:02
<%if isnull(lguserid) or lguserid="" then%>
<div class=userpanbodyitem><a href=login.asp>浣花登陆</a></div>
<div class=userpanbodyitem><a href=reg.asp>注册用户</a></div>
<%else%>
<div class=userpanbodyitem><span class=onlinestatic><a target=_self href=cookies.asp?

action=lgtype&lgtype=1 <%if lgtype=1 then%>class=static<%end if%>>上线</a>┆<a target=_self href=cookies.asp?

action=lgtype&lgtype=2 <%if lgtype=2 then%>class=static<%end if%>>隐身</a></div>
<div class=userpanbodyitem><a href=sms.asp>短信箱</a></div>
<div class=userpanbodyitem><a href=userinfo.asp?userid=<%=lguserid%>>我的页面</a></div>
<div class=userpanbodyitem><a href=Otherlist.asp?action=mytop>发表的帖子</a></div>
<div class=userpanbodyitem&g

刷新的目的何在?

if action="exit" then

'把COOKIE值清空就可以了。

response.redirect "login.asp"

end if


response.write "<script language=javascript>alert('系统成功退出!');location.href='要刷新的页';</script>"
或者
response.redirect "要刷新的页'"
或者
response.write "<meta http-equiv=""refresh"" content=""1;url=要刷新的页'""> "
都能达到刷新的目的!