Grails Cookbook - A collection of tutorials and examples

Grails cookie Tag Example

Cookies are classic to any web application. It can be used as a mechanism to remember stateful information. Cookies are usually small and stored in the web browser, and whenever a browser connects to a website, that cookie is also sent to the server as long as it's not yet expired. Grails cookie tag can be used to display a value of a cookie on the web page being displayed. Below is an example to illustrate this: