CookieTool Viewtool documentation for the dotCMS Content Management System

The Cookietool Velocity Viewtool allows you to create and access cookies. This class is only designed for use as a request-scope tool.

The following example shows how the CookieTool Viewtool is mapped in the toolbox-xml file:



How to return a cookie value and how to set a cookie label/value.

//get a cookie value

//add a cookie label and value

Javadoc link: CookieTool