|
|
@ -176,8 +176,10 @@ class Verify {
|
|
|
|
$secode = array();
|
|
|
|
$secode = array();
|
|
|
|
$secode['verify_code'] = $code; // 把校验码保存到session
|
|
|
|
$secode['verify_code'] = $code; // 把校验码保存到session
|
|
|
|
$secode['verify_time'] = NOW_TIME; // 验证码创建时间
|
|
|
|
$secode['verify_time'] = NOW_TIME; // 验证码创建时间
|
|
|
|
var_dump($secode);die();
|
|
|
|
|
|
|
|
session($key.$id, $secode);
|
|
|
|
session($key.$id, $secode);
|
|
|
|
|
|
|
|
var_dump($_SESSION);
|
|
|
|
|
|
|
|
die();
|
|
|
|
|
|
|
|
|
|
|
|
header('Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate');
|
|
|
|
header('Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate');
|
|
|
|
header('Cache-Control: post-check=0, pre-check=0', false);
|
|
|
|
header('Cache-Control: post-check=0, pre-check=0', false);
|
|
|
|