# Users are not being logged out
# Symptoms

The system remains open and logged in, even after locking the screen in the OS on the employee's PC

# Solution

1 - Add or change the parameters in `/root/swarmica/.env`:

```txt
ACCESS_TOKEN_TTL_SECONDS=1800
REFRESH_TOKEN_TTL_SECONDS=3600
ROTATE_REFRESH_TOKENS=1
```

With the settings above, the access token will be half an hour, and the refresh token will be an hour.
If the refresh token is not used within an hour, it will expire and logout will occur.

2 - Restart the services:

```txt
docker compose down && docker compose up -d
```

:::danger
When restarting, Swarmica will be unavailable for a couple of minutes.


:::