Knowledge Base

How do I set and/or get a cookie?

Posted by:

Getting and setting session cookies can be accomplished by using Studio’s Request Object (wwgRequestObj) support function.

The function is called as follows:

String getCookie(String cookieName)
void setCookie(String cookieName, String cookieValue)

Please note that cookies are not supported when using portlets. 

Please refer to the Functions section of the support site for this and other available support functions.


You must be logged in to post a comment.