سؤال

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 ?

هل كانت مفيدة؟

المحلول 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.

نصائح أخرى

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top