OPNsense Forum

English Forums => General Discussion => Topic started by: JasMan on June 13, 2026, 01:44:45 PM

Title: How does OPNsense remember the GUI view settings?
Post by: JasMan on June 13, 2026, 01:44:45 PM
Hi all,
I'm wondering how OPNsense remembers the modified WebGUI views e.g. when I changed the column order or width in the firewall rules overview. Are they saved in the browser storage or on the firewall with the other user settings?

I'm asking because my modified views get very often lost. I can't determine a pattern.

Thanks
Jas
Title: Re: How does OPNsense remember the GUI view settings?
Post by: Monviech (Cedrik) on June 13, 2026, 02:46:37 PM
They're stored in your browser storage.
Title: Re: How does OPNsense remember the GUI view settings?
Post by: JasMan on June 13, 2026, 03:33:21 PM
Quote from: Monviech (Cedrik) on June 13, 2026, 02:46:37 PMThey're stored in your browser storage.

Thanks. Do you now how? As a cookie?
I'm not familiar with the possible methods to save such settings. But I would like to understand what's deleting them from my client.
Title: Re: How does OPNsense remember the GUI view settings?
Post by: Monviech (Cedrik) on June 13, 2026, 04:58:13 PM
It's not a cookie, it's localStorage.

https://github.com/opnsense/core/blob/bb78d31407a4f36e585d8872ed15969e09832e2f/src/opnsense/www/js/opnsense_bootgrid.js#L633
Title: Re: How does OPNsense remember the GUI view settings?
Post by: nero355 on June 13, 2026, 08:11:32 PM
Quote from: JasMan on June 13, 2026, 01:44:45 PMI'm asking because my modified views get very often lost. I can't determine a pattern.
TIP :

Use a seperate Profile for your browser for all your OPNsense activities and perhaps also other Network/Server stuff that you need to do from time to time.

Mozilla based browsers use something like this :

Windows :
firefox.exe -P <YourProfielNameHere>
librefox.exe -P <YourProfielNameHere>
Linux/*BSD :
firefox -P <YourProfileNameHere>
librefox -P <YourProfileNameHere>

For the shortcut that starts the browser.

You can create the Profiles by starting the browser without the <YourProfileNameHere> part and after a few clicks you will have a new one by using the menu that appears :)
Title: Re: How does OPNsense remember the GUI view settings?
Post by: JasMan on June 14, 2026, 03:38:47 PM
Quote from: Monviech (Cedrik) on June 13, 2026, 04:58:13 PMIt's not a cookie, it's localStorage.

https://github.com/opnsense/core/blob/bb78d31407a4f36e585d8872ed15969e09832e2f/src/opnsense/www/js/opnsense_bootgrid.js#L633

Perfect! Thank's a lot!


Quote from: nero355 on June 13, 2026, 08:11:32 PM
Quote from: JasMan on June 13, 2026, 01:44:45 PMI'm asking because my modified views get very often lost. I can't determine a pattern.
TIP :

Use a seperate Profile for your browser for all your OPNsense activities and perhaps also other Network/Server stuff that you need to do from time to time.

Mozilla based browsers use something like this :

Windows :
firefox.exe -P <YourProfielNameHere>
librefox.exe -P <YourProfielNameHere>
Linux/*BSD :
firefox -P <YourProfileNameHere>
librefox -P <YourProfileNameHere>

For the shortcut that starts the browser.

You can create the Profiles by starting the browser without the <YourProfileNameHere> part and after a few clicks you will have a new one by using the menu that appears :)

Nice idea.
If I'm not able to find the reason why the local storage gets lost, this will be my plan B :)