Home  >  Article  >  Backend Development  >  session-关于PHP唯一表示符的问题。不懂,求讲解

session-关于PHP唯一表示符的问题。不懂,求讲解

WBOY
WBOYOriginal
2016-06-02 11:32:17962browse

sessionphp表单

$_SESSION['uniqid']=$_uniqid=sha1(uniqid(rand(),true));这个$_SESSION['uniqid']和$_uniqid这个不是必然相等吗。。为什么我看到他是判断$_SESSION['uniqid']和$_uniqid的值是不是一样的来判断是否是正常注册。

$_uniqid是表单中隐藏域的值

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