> Source: [sk1000101](https://support.checkpoint.com/results/sk/sk1000101)

# sk1000101 - SmartConsole/API sessions with locks or changes are not automatically discarded after some time

| Property | Value |
|----------|-------|
| Solution ID | sk1000101 |
| Date Created | 2026-09-02 |
| Last Modified | 2026-09-02 |
| Technical Level | General |
| Products | Security Management Server, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R82.10, R82.20, R82, R82.20 |
| OS | Gaia |

## Symptoms

- Some sessions have been open for a long time.

## Cause

By design, sessions with locks or changes are not discarded automatically.

## Solution

To enable automatically discarded open sessions with locks and changes, configure the environment variable, ENABLE_DISCARD_WORKSESSIONS_OLDER_THAN_DAYS, to true:

`$MDS_FWDIR/scripts/reload_env_vars.sh -e "ENABLE_DISCARD_WORKSESSIONS_OLDER_THAN_DAYS=true"

$MDS_FWDIR/scripts/override_server_setting.sh -e ENABLE_DISCARD_WORKSESSIONS_OLDER_THAN_DAYS true`

By default, only sessions open longer than 60 days will be discarded. The number of days can be configured (example below changing the number of days to 30):

`$MDS_FWDIR/scripts/reload_env_vars.sh -e "DISCARD_WORKSESSIONS_OLDER_THAN_DAYS=30" $MDS_FWDIR/scripts/override_server_setting.sh -e DISCARD_WORKSESSIONS_OLDER_THAN_DAYS 30`

If enabled, this will check all SmartConsole/API open session once per day and if their last logout time is greater than DISCARD_WORKSESSIONS_OLDER_THAN_DAYS, the session will be discarded.

<br />

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
