码迷,mamicode.com
首页 > 其他好文 > 详细

Helpers\Cookie

时间:2016-07-05 14:03:53      阅读:114      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!