protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["username"] == null || Session["pwd"] == null) { Response.Write("<script>window.top.location.href='login.aspx '</script>"); } } }
iframe 框架中main 页面设置session ,超时只有main页跳转到指定页面的解决
作者:望月狼
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.