日期:2014-05-18 浏览次数:20526 次
     System.Web.HttpContext.Current.Session["Name"]
------解决方案--------------------
/// <summary>
//        /// 判断session过期。
//        /// </summary>
//        /// <returns></returns>
//        public static bool SessionTimeOut()
//        {
//            HttpContext p = HttpContext.Current;
//            if (p.Session["ygdm"] == null)
//            {
//                p.Response.Write("会话超时,请重新<a target='_top' href='../common/login.aspx'>登录</a>。");
//                p.Response.End();
//                return true;
//            }
//            return false;
//        }