How to keep session authenticated after browser closed?

Our use case:
Browser session ends after the standard 2 hours of no user activity.
And from what I have read, the Okta session ends after the browser is closed.
But I want for the user to be able to go back to the site (same computer, same browser) anytime before the next 30 days and automatically be authenticated without “logging in with username/password”.

Should we persist the session token in a local cookie and retrieve a session like this?:
https://developer.okta.com/docs/guides/session-cookie/main/#retrieve-a-session-cookie-by-visiting-a-session-redirect-link

Can you give this a try?