# Private server does not stay logged in

**URL:** <https://community.silverbullet.md/t/private-server-does-not-stay-logged-in/4449>\
**Category:** Troubleshooting\
**Created:** [October 14, 2026, 9:22am UTC](https://community.silverbullet.md/t/private-server-does-not-stay-logged-in/4449 "2026-10-14T09:22:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Najahiri](https://community.silverbullet.md/user_avatar/community.silverbullet.md/najahiri/32/3947_2.png) [@Najahiri](https://community.silverbullet.md/u/Najahiri)\
**Post date:** [October 14, 2026, 9:22am UTC](https://community.silverbullet.md/t/private-server-does-not-stay-logged-in/4449/1 "2026-10-14T09:22:38Z")

</div>

As the title says, I log in, I check the "Remember me" box and after less than an hour I have to enter my credentials again. This happens on several browsers on several devices (Windows, Linux and Android). The installation is through Docker on Debian.

Let me know what can I share to help with my situation, any help is appreciated.

---

<div class="post-metadata">

**Author:** ![duaerteam](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/d/df705f/32.png) [@duaerteam](https://community.silverbullet.md/u/duaerteam)\
**Post date:** [October 15, 2026, 6:28am UTC](https://community.silverbullet.md/t/private-server-does-not-stay-logged-in/4449/2 "2026-10-15T06:28:10Z")

</div>

This answer is AI-generated.

The configuration docs say a "Remember me" session lasts 7 days by default (set by `SB_REMEMBER_ME_HOURS`), and a session without "Remember me" lasts a week, so being logged out within an hour suggests something outside the normal session setting. Things worth checking:

1. Environment variables: look in your docker compose or run command for `SB_REMEMBER_ME_HOURS`. If it's set to a small value, that would explain it.
2. This one isn't from the docs, just general troubleshooting: check whether the container restarts often (`docker ps` shows the uptime). If it does, it's worth testing whether sessions survive a restart in your setup.
3. Also general rather than documented: if you go through a reverse proxy, try accessing it directly, or always through the same hostname and scheme (https vs http). Browsers don't send a cookie set for one hostname to another.

Sharing your compose file (with the password removed) would help others narrow it down.

---

<div class="post-metadata">

**Author:** ![Najahiri](https://community.silverbullet.md/user_avatar/community.silverbullet.md/najahiri/32/3947_2.png) [@Najahiri](https://community.silverbullet.md/u/Najahiri)\
**Post date:** [October 15, 2026, 7:43pm UTC](https://community.silverbullet.md/t/private-server-does-not-stay-logged-in/4449/3 "2026-10-15T19:43:32Z")

</div>

Thank you for you suggestion @duaerteam.  
It looks like `SB_REMEMBER_ME_HOURS` was not set in the docker compose file, but this should set it to 7 days (?) automatically. Regardless I now changed the value by hand and it still does not stay logged in.

This is my docker compose in full, if it helps:

```docker-compose
services:
  silverbullet:
    image: ghcr.io/silverbulletmd/silverbullet:latest
    restart: unless-stopped
    environment:
    - SB_USER=[myusername]:[mypassword]
    - SB_REMEMBER_ME_HOURS=168
    volumes:
      - /my/path/to/silverbullet/data:/data
    ports:
      - "127.0.0.1:3000:3000"

```

---

<div class="post-metadata">

**Author:** ![zamuz](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/z/eada6e/32.png) [@zamuz](https://community.silverbullet.md/u/zamuz)\
**Post date:** [October 16, 2026, 11:34pm UTC](https://community.silverbullet.md/t/private-server-does-not-stay-logged-in/4449/4 "2026-10-16T23:34:20Z")

</div>

> This answer is AI-generated.

> **[No Meat Proxy](https://nomeatproxy.com/)**
>
> AI is a tool. You shouldn't be.
