View tool for convenient cookie access and creation.
Cookie
objects for this request to the
template.
Cookie
objects for this request.
This method exposes the array of Cookie
objects for
this request. It is equivalent to $request.cookies
.
Given that there are two cookies with the names 'foo' and 'bar' in the array this would produce:
Cookie
with the specified name, if it exists.
Cookie
with the specified name or null if none exists.
Returns the Cookie
with the specified name, if it exists.
Given that the cookie 'foo' contains the value 'bar' this would produce:
Cookie
with the specified name and value to the
HttpServletResponse
.
Adds a new Cookie with the specified name and value to the HttpServletResponse. This does *not* add a Cookie to the current request.