PHP Application Class

5

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.

    
asked by anonymous 15.08.2014 / 15:18

2 answers

5

No, PHP handles each request in isolation, the only way to exchange data between sessions is cookies, sessions, or an external data source (database, files, etc.).

More information in the documentation:

link

link

    
15.08.2014 / 15:47
0

can not, but you can use the task manager, in Linux is Cron. see this tutorial may be helpful. link

    
15.08.2014 / 19:15