sos2
求教一下,关于global.asa文件的请你们看一下这个代码
<script language=vbscript runat=server>
sub application_onStart
application("listname")=""
end sub
sub session_onstart
session("stuid")=""
session.timeout=1
end sub
sub session_onend
if not session.contents("leave") then
str=session.contents("stuid")&"-"
end if
str=session.contents("stuid")&"-"
if InStrRev(application("listname"),str)<>0 then
del_strart=instr(application("listname"),str)-1
del_end=del_start+len(str)
str_start=left(application("listname"),del_start)
str_end=right(application("listname"),len(application("listname"))-del_end)
application.lock
application("listname")=str_start+str_end
application.unlock
end if
end sub
</script>
为什么在我关闭网页是不触发session_onend事件啊?