Development Documents
04-Feb-2020
ISML Function - getCookie()
Document Properties
Kbid
P24775
Added to KB
20-Jun-2013
Status
online
Product
  • Intershop 7.1
  • Intershop 7.3
  • Intershop 7.5
  • ICM 7.6
  • ICM 7.8
  • ICM 7.10
  • ICM 12
Last Modified
04-Feb-2020
Public Access
everyone
Doc Type
References
Product
  • Intershop 7.2
  • Intershop 7.4
  • Intershop 7.4 CI
  • ICM 7.7
  • ICM 7.9
  • ICM 11
  • ICM 13
Document Link
https://knowledge.intershop.com/kb/P24775

Name

getCookie()

Short Description

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

Table of Contents

Product Version

6.5

Product To Version

 

StatusNew Labels

Introduction

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.

Syntax

getCookie( <Key String - operation> )

Example

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')#">
</ISIF>

Reference - ISML Functions

Disclaimer

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 Website, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Home
Knowledge Base
User Manuals
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.