It seems Rails sessions by default only last, well, a browsing session.
If the Rails app keeps track of logged-in state by sessions, that state
doesn’t survive restarting the browser.
How best to change this behaviour, to make the session cookie live
forever, or at least beyond browser restarts?
It was suggested to me on IRC to combine sessions with code to generate
a unique id and then store that in a “normal cookie” as well as in the
DB, and then restore the session out of that, but that seems like
re-inventing session handling.
What are some better solutions?