How to maintain session even after closing the browser? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to maintain session even after closing the browser?

29th Jul 2016, 3:26 AM
HITESH
HITESH - avatar
1 Answer
+ 1
That's what cookies are for. Session is a reference to a browsing session. If you really must preserve session, you can overwrite the expiration in a few ways. https://secure.php.net/manual/en/book.session.php
29th Jul 2016, 4:26 AM
Chris Zuber
Chris Zuber - avatar