array (size=3)
'username' => string 'admin' (length=5)
'password' => string 'xxx' (length=3)
'code' => string '6105' (length=4)
array (size=3)
'verify' => string 'c1d53b7a97707b5cd1815c8d228d8ef1' (length=32)
'username' => string 'admin' (length=5)
'authority' => string '1' (length=1)
mysql> select md5('6105') from mysql.user;;
----------------------------------+
md5('6105') |
----------------------------------+
c1d53b7a97707b5cd1815c8d228d8ef1 |
php 中session 里有 验证码信息 ,用户和认证级别
111111111
array (size=3)
'verify' => string '0613239e122094abb4ef998c01d16958' (length=32)
'username' => string 'admin' (length=5)
'authority' => string '1' (length=1)
111111111
:(
往session里写数据;
function do_login(){
//获取用户名和密码信息,和数据库中比对
// echo 111111111;
#dump($_POST);
echo 111111111;
dump($_SESSION);
echo 111111111;
$_SESSION['test']='aaaaa';
echo 222222222;
dump($_SESSION);
echo 22222222222;
111111111
array (size=3)
'verify' => string 'd83df0d58637d4fca2d52dcdbb3ccb4f' (length=32)
'username' => string 'admin' (length=5)
'authority' => string '1' (length=1)
111111111222222222
array (size=4)
'verify' => string 'd83df0d58637d4fca2d52dcdbb3ccb4f' (length=32)
'username' => string 'admin' (length=5)
'authority' => string '1' (length=1)
'test' => string 'aaaaa' (length=5)
22222222222