我可以查看会话状态值在客户端使用Chrome DevTools? [英] Can I view Session State Value at client-side using Chrome DevTools?

查看:131
本文介绍了我可以查看会话状态值在客户端使用Chrome DevTools?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是好奇,如果我们可以得到/浏览会话变量值使用Chrome DevTools一个网站。

I was just curious if we can get/view Session variables values for a website using Chrome DevTools.

如果有谁知道,请分享。

If anyone knows, please share.

推荐答案

没有,你不能查看在客户端的会话状态变量。会话状态存储在服务器和客户端的浏览器只知道的SessionID的存储在Cookie或URL

No, you cannot view session state variables at client side. Session state is stored at server, and Client browser only knows SessionID which is stored in cookie or URL.

ASP.NET会话状态概述

会话是由唯一的标识符能够由读取标识
  使用SessionID属性。当会话状态是所启用
  ASP.NET应用程序,在应用程序中的每个页面请求
  检查从浏览器发送一个SessionID的值。如果没有的SessionID
  提供价值,ASP.NET启动一个新的会话和会话ID
  对于该会话的值被发送到与该响应的浏览器。

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.

默认情况下,SessionID的值存储在cookie中。但是,你可以
  还配置为存储在URL SessionID的值应用
  一个无Cookie的会话。

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

Chrome Browser has few extensions to view cookie. I use Edit This Cookie.

这篇关于我可以查看会话状态值在客户端使用Chrome DevTools?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆