1 请使用context.Session2 继承System.Web.SessionState.IRequiresSessionState接口。 转载于:https://www.cnblogs.com/jams742003/archive/2009/09/24/1573262.html