用response.write和response.end带动一下,才能传session值,很奇怪!

tina_mh tina_mh 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
1.asp

session("username")=request("username")
<BODY onUnload="window.location.href='zhuxiao.asp'">
<a href="zhuxiao.asp">注销登陆</a>




zhuxiao.asp

<%
response.write("username")
'reponse.end
if session("username")="" then
response.Write("<script language=javascript>alert('登录时间过长!');window.location.href='denglu2.asp'</script>")
else
session("username")=""
response.Write("<script language=javascript>alert('注销成功!');window.location.href='denglu2.asp'</script>")
response.End
end if%>

只有用response.write和response.end带动一下,才能传session值,否则session值就为空,为什么啊?


...全文
评论 10
收藏 已收藏
分享
返回顶部
tina_mh
ASP 28,401 成员 356,940 内容