问题描述
调试PHP程序,没有任何附加/插件,浏览器,我可以查看会话变量(那些PHP $ _SESSION [FOOBAR])?
Debugging a PHP program, is there any add-on/plug-in for browser which I can view sessions variables (those PHP $_SESSION["foobar"] )?
最佳,如果我可以改变的变量的值。
Best if I can change the value in the variables.
推荐答案
这就是你会使用一个会话使用的cookie的主要原因之一 - 您可以控制数据。
与饼干,用户可以操纵数据。
There is no way to manipulate the values stored in sessions from the client side.
That's one of the main reasons you'd use a session over a cookie - YOU control the data.With cookies, the user can manipulate the data.
从客户端访问/操纵会话数据将与Ajax调用或其他JavaScript机制来调用另一个PHP脚本,它会通过的功能。
The only way to access/manipulate session data from the client side would be with an Ajax call or other JavaScript mechanism to call another php script, which would be doing the retrieval/manipulation of the session data via the session_
functions.
这篇关于在浏览器中查看和更改会话变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!