Difference between #12 and #13 of
Cookie management in Yii

Revision #13 has been created by Suralc on Aug 2, 2012, 7:48:30 AM with the memo:

Preperation for 1.1.12, again
« previous (#12) next (#14) »

Changes

Title unchanged

Cookie management in Yii

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

cookies, cookie, chttpcookie, ccookiecollection, safe reading

Content changed

[...]
See also "Safe reading" in the next chapter.

### Writing a cookie

There are multiple ways to write a cookie:
 
 
Notice, that you have to specify the name twice, if you want to use this:

```php
Yii::app()->request->cookies['cookie_name'] = new CHttpCookie('cookie_name', $value);
```
See also "Reload required" in the next chapter.
[...]
38 1
40 followers
Viewed: 195 625 times
Version: 1.1
Category: How-tos
Written by: Trejder
Last updated by: resurtm
Created on: Feb 26, 2011
Last updated: 11 years ago
Update Article

Revisions

View all history