Answer the question
In order to leave comments, you need to log in
PHP Don't auto-create session on non-existence?
Is it possible to open a session for reading using standard PHP tools, but not to auto-create it if it does not exist on the server? The read_and_close option in the session_start function does not help, the session is still created empty.
Naturally, you can manually check all this - the presence of cookies with the session identifier, this identifier itself for validity, then check the presence of the corresponding file in the session storage folder, and only if they are available, call session_start, but with this approach it is easier to use your mechanism for the session instead standard than to attach crutches to the standard.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question