Hello <g:cookie name="myCookie" />
cookie
Purpose
Obtains the value of a named cookie
Examples
Reading a cookie’s value:
Or testing for existence:
<g:if test="${cookie(name:'myCookie')}">Hello</g:if>
Description
Attributes
-
name
- The name of the cookie