[英]php session data inaccessible from lower folder
I am setting a session variable from .../folder/script.php when i try to access it from .../script.php i get nothing 当我尝试从... / script.php访问它时,我正在从... / folder / script.php设置会话变量,我一无所获
its probably something stupid but...can anyone explain? 这可能是愚蠢的,但是...有人可以解释吗? and yes i am starting the session.
是的,我正在开始会议。 and i am using an overriden session if that helps any ?
我正在使用重写会话,如果有帮助吗?
You may be setting a cookie with a path. 您可能正在设置带有路径的Cookie。
Try setting the cookie path to /, 尝试将Cookie路径设置为/,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.