Inconsistent Theme Persistence in CloudPanel #347

Closed
opened 2026-04-05 20:27:08 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @ItzNotABug on 9/2/2023

CloudPanel version(s) affected

2.3.2

Description

The CloudPanel theme settings don't consistently persist.
While the chosen theme (e.g., dark mode) is saved initially, it occasionally reverts to the default light mode after a day or two of inactivity or if opened in a incognito tab.

This requires users to manually re-select their preferred theme upon subsequent logins.

How to reproduce

  1. Logging in to CloudPanel and switching to dark mode.
  2. Logging out for a day or two or simply opening CloudPanel in an incognito tab. The theme defaults back to light mode.

Possible Solution

Avoid relying on Cookies.set('theme', 'dark').
Instead, store the theme selection in a manner that's independent of browser sessions, perhaps in a database, ensuring persistence until the user decides to change it.

Additional Context

N/A

*Originally created by @ItzNotABug on 9/2/2023* ### CloudPanel version(s) affected 2.3.2 ### Description The CloudPanel theme settings don't consistently persist. While the chosen theme (e.g., dark mode) is saved initially, it occasionally reverts to the default light mode after a day or two of inactivity or if opened in a incognito tab. This requires users to manually re-select their preferred theme upon subsequent logins. ### How to reproduce 1. Logging in to CloudPanel and switching to dark mode. 2. Logging out for a day or two or simply opening CloudPanel in an incognito tab. The theme defaults back to light mode. ### Possible Solution Avoid relying on `Cookies.set('theme', 'dark')`. Instead, store the theme selection in a manner that's independent of browser sessions, perhaps in a database, ensuring persistence until the user decides to change it. ### Additional Context N/A
Sign in to join this conversation.