diff --git a/ThinkPHP/Library/Think/Verify.class.php b/ThinkPHP/Library/Think/Verify.class.php index c2b17a878..e14f5e261 100644 --- a/ThinkPHP/Library/Think/Verify.class.php +++ b/ThinkPHP/Library/Think/Verify.class.php @@ -176,8 +176,10 @@ class Verify { $secode = array(); $secode['verify_code'] = $code; // 把校验码保存到session $secode['verify_time'] = NOW_TIME; // 验证码创建时间 - var_dump($secode);die(); + session($key.$id, $secode); + var_dump($_SESSION); + die(); header('Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', false); diff --git a/ThinkPHP/Mode/Lite/functions.php b/ThinkPHP/Mode/Lite/functions.php index c7b3e584d..7cf10acdc 100644 --- a/ThinkPHP/Mode/Lite/functions.php +++ b/ThinkPHP/Mode/Lite/functions.php @@ -1206,7 +1206,6 @@ function session($name='',$value='') { } } }else{ // 设置session - var_dump('ssss');die(); if(strpos($name,'.')){ list($name1,$name2) = explode('.',$name); if($prefix){