我做了一个框架,左边是菜单,右边是内容,我在VS中运行页面,超时后,右边的内容页成为登陆页,再登陆就可以进入,按菜单页上选项可以进入相应页,但是使用浏览器运行页面时,超时后,右边也变成登陆页,登陆后也出现欢迎页,但是按菜单页上的选项,内容页又变成登陆页,我每个内容页的LOAD事件里都验证是否SESSION是否为空,为空则跳登陆页

解决方案 »

  1.   

    <frameset name="Win" id="Win" rows="50,*,30" cols="*" framespacing="0" frameborder="no" border="0"
    onbeforeunload="return '网站后台管理系统\n友情提示'">
    <frame src="Topbar.aspx" name="topFrame" frameborder="no" scrolling="no" noresize marginwidth="0"
    id="topFrame">
    <frameset id="LeftWin" rows="*" cols= "209,*" framespacing="0" frameborder="no" border="0">
    <frame src="LeftFrm.aspx" name="leftFrame" frameborder="no" scrolling="no" noresize marginwidth="0"
    id="leftFrame">
    <frame src="Default.aspx" name="mainFrame" frameborder="no" scrolling="auto" noresize marginwidth="0"
    id="mainFrame">

    </frameset>
    <frame src="statbar.htm" name="bottomFrame" frameborder="no" scrolling="no" noresize marginwidth="0"
    id="bottomFrame">
    </frameset>
      

  2.   

    window.top.location.href='login.aspx'登录超时后整个页面转入登录页.