Write a Cookie
App::Module('Cookie')->Write(Name, Value);
Parameter |
Type |
Description |
---|---|---|
Name |
Mandatory |
Name of the Cookie |
Value |
Mandatory |
Value to write |
See bellow examples:
// Write a cookie
App::Module('Cookie')->Write('username', 'jhon');