To retrieve the value of a cookie use the following code:

  1. #set ($cookieValue = $cookietool.get("awesomeCookieName").value)   

If retrieving a value from the header then you can use the following (just remove get):

  1. #set ($cookieValue = $cookietool.awesomeCookieName.value)   

See more information on creating cookies here:

http://dotcms.com/codeshare/creating-accessing-and-deleting-cookies-using-velocity-cookietool

comments powered by Disqus