3
* CHttpCookie class file.
5
* @author Qiang Xue <qiang.xue@gmail.com>
6
* @link http://www.yiiframework.com/
7
* @copyright Copyright © 2008-2011 Yii Software LLC
8
* @license http://www.yiiframework.com/license/
12
* A CHttpCookie instance stores a single cookie, including the cookie name, value, domain, path, expire, and secure.
14
* @author Qiang Xue <qiang.xue@gmail.com>
15
* @version $Id: CHttpCookie.php 2799 2011-01-01 19:31:13Z qiang.xue $
19
class CHttpCookie extends CComponent
22
* @var string name of the cookie
26
* @var string value of the cookie
30
* @var string domain of the cookie
34
* @var integer the timestamp at which the cookie expires. This is the server timestamp. Defaults to 0, meaning "until the browser is closed".
38
* @var string the path on the server in which the cookie will be available on. The default is '/'.
42
* @var boolean whether cookie should be sent via secure connection
46
* @var boolean whether the cookie should be accessible only through the HTTP protocol.
47
* By setting this property to true, the cookie will not be accessible by scripting languages,
48
* such as JavaScript, which can effectly help to reduce identity theft through XSS attacks.
49
* Note, this property is only effective for PHP 5.2.0 or above.
51
public $httpOnly=false;
55
* @param string $name name of this cookie
56
* @param string $value value of this cookie
58
public function __construct($name,$value)