解决方法
不,您不能在客户端查看会话状态变量。会话状态存储在服务器端,客户端浏览器只知道存储在cookie或URL中的SessionID。
ASP.NET Session State Overview
Sessions are identified by a unique identifier that can be read by
using the SessionID property. When session state is enabled for an
ASP.NET application,each request for a page in the application is
examined for a SessionID value sent from the browser. If no SessionID
value is supplied,ASP.NET starts a new session and the SessionID
value for that session is sent to the browser with the response.By default,SessionID values are stored in a cookie. However,you can
also configure the application to store SessionID values in the URL
for a “cookieless” session.
Chrome浏览器几乎没有扩展功能来查看Cookie。我使用编辑这个Cookie。