php 谷歌浏览器如何检查存储的会话

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26412225/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 22:53:28  来源:igfitidea点击:

Google Chrome how to check stored sessions

phpgoogle-chromesessionsession-variables

提问by Jakub Pastuszuk

I am setting sessions in my PHP script, and I would like to check values of stored SESSION variables in google chrome. How can I client-check saved values?

我在我的 PHP 脚本中设置会话,我想检查谷歌浏览器中存储的 SESSION 变量的值。如何客户端检查保存的值?

回答by Rohit Jindal

Important Points:

要点:

  1. Session always stored on the server.
  2. If you want to see stored session value use echo $_SESSION['value'];in your script.
  3. If you would like to check values of store data accessible use cookies.
  1. 会话始终存储在服务器上。
  2. 如果您想查看存储的会话值,请使用echo $_SESSION['value']; 在你的脚本中。
  3. 如果您想检查可访问的商店数据的值,请使用cookie

回答by Wes Cossick

Session data is stored on the server only, and cannot be accessed by the client. If you'd like to store data accessible by the client and the server, use cookies.

会话数据仅存储在服务器上,客户端无法访问。如果您想存储可由客户端和服务器访问的数据,请使用 cookie。