Question

It seems to be that my PHP session is expiring/deleting when the browser is closed.

Is there a way I can prevent this to happen ? Is it only a PHP setting or is there a browser say in this as well ?

Was it helpful?

Solution 2

You need:

However, if you want your session to persist after browser was closed, it seems that it's not "session" by definition. I.e. technically, you can do that - but logically that seems to be architecture smell.

OTHER TIPS

That is the behaviour of a session . If you don't want that to happen make use of Cookies.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top