/// <summary> /// 生成标志,并保存到Session /// </summary> public static void SetToken() { HttpContext rq = HttpContext.Current; rq.Session.Add("Token", SecurityHelper.MD5String(rq.Session.SessionID + DateTime.Now.Ticks.ToString())); }