Recording Sessions in the Browser

1

How to record sessions in the browser with php.

I currently have a login system, and always validate the [$_SESSIONS] in the browser, but every time I close and reopen the browser, login no longer exists.

How best to store your data in the browser.

  • Will it be useful to use COOKIES?
  • Should I save sessions in Database?

What is the best way to do this, so that you never have to log in?

    
asked by anonymous 04.09.2017 / 15:51

1 answer

0

Sessions whenever you close the browser it will be closed. If you want something longer lasting use Cookies, you can configure how long it becomes available, even by closing the browser. See more about cookies at:

link

    
04.09.2017 / 16:09