Re-establish a session after server reboot
(CF2016/Win 2022/IIS 10)
I want my users to be able to stay logged in for a long period of time, however as Microsoft release it's updates every second Tuesday of the month, I like to make sure these are in place asap and this almost always requires a reboot.
A reboot loses all of the sessions, so the users would have to log back in again. I believe (well according to my new friend ChatGPT) early versions of CF used to have an option write the session to a file so it could be recovered but now it's memory or Redis.
I did find a thread in the forum regards editing of Tomcats config, but I was a little uncomfortable doing that.
Does anybody have any solutions to this?
My thought is that I'll write a big unique token (or two) into a cookie and stored in their database record, and when they return if they are logged out, use that to reauthenticate them and create a new logged in session, a "remember me" so it automatically logs them back in seemlessly.
One downfall of this is that if they were in the middle of something, it's going to lose whatever that was and kick them to the start page of their dashboard.
Second to this, I was just thinking, if the sessions are going into memory, does that mean that if I leave the length of the session too long that it's going to just eat up lots of memory over time as my user base grows?
Appreciate any thoughts.
