In PHP there is some class that works until, for example, I close the tab of my browser, without being a cookie, the session does not serve because it dies when the session ends, I would like to know if there is any class that I can extend in a way that I can save some values until the browser or the tab is closed, just as it would have for Android the Application class.