ISML Function - getCookie()



Short Description

returns the value of a cookie containing a request's path data

Table of Contents

Product Version


Product To Version


StatusNew Labels


Every time the client sends a request to the server and a cookie is defined for the requested path, the cookie is also sent to the server with the current request. The function getCookie() returns the value of such a cookie. You need to specify the name of the desired cookie as a function attribute. In case a cookie with the specified name has not been received, the function returns an empty string. See ISML Tag - ISCOOKIEabout information on how to create a cookie on the client side.


getCookie( <Key String - operation> )


The example below first checks if a cookie with the MyCookie name exists, then it prints out the value of the specified cookie.

<ISIF condition = "#isDefined(getCookie('MyCookie'))#">
 <ISPRINT value = "#getCookie('MyCookie')#">

Reference - ISML Functions


The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

The Intershop Customer Portal uses only technically necessary cookies. We do not track visitors or have visitors tracked by 3rd parties. Please find further information on privacy in the Intershop Privacy Policy and Legal Notice.
Customer Support
Knowledge Base
Product Resources