验证页面源码如下,环境是winnt+iis4.0:
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/opendb.asp"-->
<%
   Dim username
   Dim password
   Dim allow
   allow=0
   username=request("LoginName")
   password=request("Password")
if username<>"" and password<>"" then
   set conn=opendb("oabusy","conn","accessdsn")
   set rs=server.createobject("adodb.recordset")
   sql="select * from userinf where username=" & sqlstr(username) 
   rs.open sql,conn,1
   if (not rs.eof) then 
      if  (trim(rs("password")))=password then
          allow=1
      end if 
   else
      allow=2
   end if
   rs.close
   set rs=nothing  
   conn.close
   set conn=nothing
      
   if allow=1 then
     ' session("username")=username
      response.redirect "../index.htm"
   else
      response.redirect "../opportunities/fail1.htm"
   end if
end if
%>
index.htm是一个框架页面,包含a,b,c三个页面,我在a页面中取出session的值,如:<%a=session("username")%>,但是得不到
孟老大,请帮忙