我用thinkphp框架开发,但在设置cookie时得不到cookie数组中的内容,如我的用词表有个帐号,密码,用户名等,然后我在后台设置为
$loginerInfo=$user->where("account='$userName' and password='$password'")->find();
cookie('loginerInfo',$loginerInfo,'expire=3600*30');
这样把cookie保存起来,但在html模板中如果我要直接得到用户名的内容要怎么写?
在线等高手来解答!CookieHTML
$loginerInfo=$user->where("account='$userName' and password='$password'")->find();
cookie('loginerInfo',$loginerInfo,'expire=3600*30');
这样把cookie保存起来,但在html模板中如果我要直接得到用户名的内容要怎么写?
在线等高手来解答!CookieHTML
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货