> ## Documentation Index
> Fetch the complete documentation index at: https://dokumentation.websale.de/llms.txt
> Use this file to discover all available pages before exploring further.

# actions - Security & data protection

> Shop actions for security and data protection: messages and notifications around session control and the consent layer for managing user consents.

This page contains all actions related to security and data protection in the shop. This includes messages and notifications around session control and the consent layer for managing consents.

***

## Overview of actions

The actions listed here are **grouped thematically** to provide a clear overview of the associated error messages and email templates.

Actions that thematically belong to a different area can be found in the corresponding sections of this documentation or in the [alphabetical overview of actions](/en/konfiguration/actions-fehlertexte-e-mails/actions-alphabetische-ubersicht).

#### Excerpt of the basic `actions` structure

```json theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
{
    "actions": {
      ...
      "sessionUnlock": {...},
      "sessionUpdate": {...},
      "consentChange": {...},
      ...
    }
}
```

#### Action overview

| **Action**      | **Description**                                   |
| --------------- | ------------------------------------------------- |
| `sessionUnlock` | Controls whether unlocking a session is possible. |
| `sessionUpdate` | Controls whether updating a session is possible.  |
| `consentChange` | Controls whether changing a consent is available. |

***

## `actions.session*` - Shop session

### `actions.sessionUnlock` - Unlock session

The `sessionUnlock` action controls whether the user can unlock a session or not.

#### Example configuration `actions.sessionUnlock`

```json theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
{
  "active": true
}
```

#### Parameter overview

| **Parameter** | **Type** | **Description**                                                                                                                               |
| ------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `active`      | bool     | Enables/disables the `sessionUnlock` action. <br />If `false`, unlocking the session via this action is not available.  <br />Default: `true` |

### `actions.sessionUpdate` - Update session data

The `sessionUpdate` action controls whether updating a session is possible.

#### Example configuration `actions.sessionUpdate`

```json theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
{
  "active": true
}
```

#### Parameter overview

| **Parameter** | **Type** | **Description**                                                                                                                                  |
| ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `active`      | bool     | Enables/disables the `sessionUpdate` action. <br />If `false`, updating the session via this action is not available.      <br />Default: `true` |

***

## `actions.consentChange` - Change consent settings

The `consentChange` action controls whether changing a consent is possible.

The basic settings for the consent layer — for example groupings, categories and definitions of services requiring consent — are configured in the [general.consentCookie\*](/en/konfiguration/general-allgemeine-shopeinstellungen) configuration section.

#### Example configuration `actions.consentChange`

```json theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
{
  "active": true
}
```

#### Parameter overview

| **Parameter** | **Type** | **Description**                                                                                                                              |
| ------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `active`      | bool     | Enables/disables the `consentChange` action. <br />If `false`, changing the consent via this action is not available.  <br />Default: `true` |

***
