首页 > 其他 > 详细

Helpers\Cookie

时间:2016-07-05 14:02:27      阅读:233      评论:0      收藏:0      [点我收藏+]

Helpers\Cookie

The Cookie helper has the following methods:

Cookie::exists($key);

Returns true or false

Cookie::set($key, $value, $expiry = self::FOURYEARS, $path = "/", $domain = false);

$key - the name of the cookie

$value - the value the cookie holds

$expiry - time to hold the cookie

$path - the path the cookie accepts

domain - the domain to be used defaults to false

Cookie::get($key, $default = ‘‘)

Get the key from a cookie

Cookie::display()

Returns the $_COOKIE

Cookie::destroy($key, $path = "/", $domain = "")

Remove/Delete cookie match the id of $key

Helpers\Cookie

原文:http://www.cnblogs.com/chunguang/p/5643106.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!