I am trying to create a cookie using Grails 2 (RC3). I am using this for a Facebook canvas app, which means that on every browser refresh, the session is lost.
I have tried using the cookies plugin, but it seems that it’s not compatible with Grails 2.
Any help would be GREATLY appreciated!
You can retrieve the value of a cookie in a GSP using the
<g:cookie>tagYou can also use this tag from a controller:
You can set a cookie using the Servlet API