Domanda

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 ?

È stato utile?

Soluzione 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.

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top