Tutorial by Topics: cookies

An HTTP cookie is a small piece of data sent from a website and stored on the user's computer by the user's web browser while the user is browsing. bool setcookie( string $name [, string $value = "" [, int $expire = 0 [, string $path = "" [, string $domain = "" [,...
Cookies are part of HTTP request so it's a good idea to do both in controller which responsibility is exactly dealing with request and response.

Page 1 of 1