thinkphp session 取不到验证码
//查询验证码
function checklogin(){
$data=$_SESSION['verifyCode'];
echo $data;
}
//生成验证码
public function verify(){
import("@.ORG.Image");
$image=new Image();
$image->buildImageVerify(6, 5);
}
验证码生成了,但是控制器里面session就是取不到验证码
static function showAdvVerify($type='png', $width=180, $height=40, $verifyName='verifyCode') {
$rand = range('a', 'z');
shuffle($rand);
$verifyCode = array_slice($rand, 0, 10);
$letter = implode(" ", $verifyCode);
$_SESSION[$verifyName] = $verifyCode;
略。。。。。。。