clarify cookie comment.
This commit is contained in:
parent
c9bb800ee9
commit
97cb0035f4
|
@ -66,7 +66,7 @@ protected static function set($cookie)
|
||||||
setcookie($name, $value, $time, $path, $domain, $secure);
|
setcookie($name, $value, $time, $path, $domain, $secure);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the value of a cookie.
|
* Get the value of a cookie.
|
||||||
|
@ -92,7 +92,7 @@ public static function get($name, $default = null)
|
||||||
if ( ! is_null($value) and isset($value[40]) and $value[40] == '~')
|
if ( ! is_null($value) and isset($value[40]) and $value[40] == '~')
|
||||||
{
|
{
|
||||||
// The hash signature and the cookie value are separated by a tilde
|
// The hash signature and the cookie value are separated by a tilde
|
||||||
// character for convenience. To separate the hash and the contents
|
// character for convenience. To separate the hash and the payload
|
||||||
// we can simply expode on that character.
|
// we can simply expode on that character.
|
||||||
list($hash, $value) = explode('~', $value, 2);
|
list($hash, $value) = explode('~', $value, 2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue