CakePHP
80
Handling Cookie with CakePHP is easy and secure. There is a CookieComponent class which
is used for managing Cookie. The class provides several methods for working with Cookies.
Write Cookie
The
write()
method is used to write cookie. Following is the syntax of the write() method.
Cake\Controller\Component\CookieComponent::write(mixed $key, mixed $value =
null)
The write() method will take two arguments,
the name of cookie variable ($key)
, and
the value of cookie variable ($value)
.
Do'stlaringiz bilan baham: