一个Session的问题,把我搞死了,请大家来指点.在线等.
有代码如下:
<%
If login Then
Response.Write session("user123") '在这里可以显示出session的值
If IsNull(URL) Or Trim(URL)="" Then
Response.Redirect ("Blank.asp")
End If
if instrrev(url,".asp")=0 then%>
<script language="VBSCRIPT">
document.location ="<%=URL%>"
</script>
<%end if%>
<script language="VBSCRIPT">
Sub Window_Onload()
alert(<%=session("user123")%>) '这里显示的是个空值,怎么回事??
exit sub
Document.forms(0).Action="<%=URL%>"
Document.forms(0).Submit
End Sub
</script>
<%
Else
%>
<Script Language="VBSCript">
Msgbox "你没有访问此服务的权限",,"提示"
Window.Location="main.asp"
</Script>
<%
End If
%>