cookie('name','value',array('expire'=>3600,'prefix'=>'think_'))
上面是设置cookie
如何只获取前缀为think的cookie?
谢谢
-。-加个重载?
用$_COOKIE
仔细看手册
http://php.net/manual/en/features.cookies.php
约莫记得tp没有带有你这个需求的,不过你可以写一个,扩展一个出来实现你的这个需求,工作量也不大
cookie('name','value',array('expire'=>3600,'prefix'=>'think_'))
上面是设置cookie
如何只获取前缀为think的cookie?
谢谢
-。-加个重载?
用$_COOKIE
仔细看手册
http://php.net/manual/en/features.cookies.php
约莫记得tp没有带有你这个需求的,不过你可以写一个,扩展一个出来实现你的这个需求,工作量也不大