asp.net – 我可以使用Chrome DevTools在客户端查看会话状态值吗?

前端之家收集整理的这篇文章主要介绍了asp.net – 我可以使用Chrome DevTools在客户端查看会话状态值吗?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如果我们可以使用Chrome DevTools获取/查看网站的会话变量值,我只是好奇。

如果有人知道,请分享

解决方法

不,您不能在客户端查看会话状态变量。会话状态存储在服务器端,客户端浏览器只知道存储在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。

原文链接:https://www.f2er.com/aspnet/252638.html

猜你在找的asp.Net相关文章