Home > Backend Development > PHP Tutorial > 关于drupal匿名访问session值无法保存的问题

关于drupal匿名访问session值无法保存的问题

WBOY
Release: 2016-06-23 13:36:44
Original
995 people have browsed it

今天找了一天也没找到相关解决办法,情况是这样的:在drupal中如果没有global $user的情况下,使用$_SESSION就相当于一个普通变量,根本没办法保存,而且在global了$user的情况下,如果是匿名的,也就是$user->uid是0 的话,session也是没办法保存,有没有哪位大神能出来指点一二,小弟不甚感激!谢谢


回复讨论(解决方案)

你要保存什么? 代码是如何写的?

我也遇到一样的问题,不过解决了。
http://segmentfault.com/a/1190000002671161

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template