Home >php教程 >php手册 >PHP中session一些奇怪的问题

PHP中session一些奇怪的问题

WBOY
WBOYOriginal
2016-06-13 11:39:30953browse

echo $_SESSION["kfGid"];//为0005
$kfGid = $rs["kfGid"];//0001
echo $_SESSION["kfGid"];//居然变成了0001

解决方法:

1.php版本解析的问题。为了安全,你最好不要这样写。$kfGid改成其他就好了。

2.php.ini register_global  改为 off

为了提高安全性,一般都把register_global设为off

Statement:
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