急急急急!!!Request.ServerVariables("LOGON_USER")在框架中使用的问题?
我现在遇到一个问题,在框架中用Request.ServerVariables("LOGON_USER")有时取到值,有时去不到!太郁闷了!请大家帮忙分析一下!
我的程序是这样的,用户点击一个链接后,弹出域登录窗口,用户输入账号密码后进入一个frame,frame中是这样的:
<frameset framespacing="0" rows="85,*,26" border="0" frameborder="0" >
<frame name="top" scrolling="no" noresize target="contents" src="top.asp">
<frameset cols="158,*">
<frame name="tree" target="main" scrolling="no" src="left.asp?clicktype=<%=clicktype%>">
<frame name="main" scrolling="auto" src="<%=firstURL%>">
</frameset>
<frame name="bottom" scrolling="no" noresize target="contents" src="bottom.asp">
<noframes>
<body topmargin="0" leftmargin="0" >
<p>此网页使用了框架,但您的浏览器不支持框架。</p>
</body>
</noframes>
</frameset>
结果在tree和main两个frame中,Request.ServerVariables("LOGON_USER")有时取到值,有时去不到,很不稳定,但是象Request.ServerVariables("LOCAL_ADDR")就可以取到。