需要引用 IRequiresSessionState 接口 与之相关的 IReadOnlySessionState 转载于:https://www.cnblogs.com/94LH-shuai/p/8796312.html