request:getCookieValue

Purpose

Used to access the value of a cookie when direct access to the original request is not available.

If the specified cookie exists then its value is returned. If it does not exist, the result depends on whether a value argument was provided. If it was then it is returned as the result of this function, otherwise an empty sequence is returned.

Signature

request:getCookieValue [name, value]

Parameter

Name Description Type Use
name The name of the cookie xs:string required 
value The optional value to return if the cookie is not found xs:string optional 

Related topics