---
title: "httpGetCookie"
canonical: "https://support.appfire.com/space/PSJC/434602792/httpGetCookie"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Retrieves the value of the specified cookie (if existing) from the latest HTTP response.

Retrieves the value of the specified cookie (if existing) from the latest HTTP response.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | httpGetCookie(cookieName) | **Package** | http |
| **Alias** |  | **Pkg Usage** | getCookie(cookieName) |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| cookieName | String | Yes | The name of the cookie. |

## Return Type

**String**

## Example

```javascript
string cookieVal = httpGetCookie("sessionToken");
```

## See also

> Macro (contentbylabel)