I'm on Firefox version 110.0.1 and I'm using Windows. I have checked the settings and the option to clear cookies when the browser is closed is turned off. Changing the browser safety setting from strict to normal didn't help either
I'm sorry, I'm not able to get the problem to happen on my computer! I don't have a Windows machine to test it on, but Firefox 110.0.1 on MacOS saves the state when the tab is closed or the browser gets restarted.