• php session内容


    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


    
                                        
    
  • 相关阅读:
    点击图片等比缩放
    C# 使用 NPOI 库读写 Excel 文件
    vue url生产二维码
    centos Linux 同步Windows 时间
    centos 搭建 docker sentry
    centos 安装 pip
    webpack 提升90%的构建速度 HardSourceWebpackPlugin
    webpack 原生分析
    webpack 分析
    nodejs——js 实现webSocket 兼容移动端
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13349559.html
Copyright © 2020-2023  润新知