Answer the question
In order to leave comments, you need to log in
How to find out if there is a session with nginx?
On the PHP side, the session will be raised.
It is necessary to find out if there is such a session with the same name.
For example with cookies. On the PHP side, a cookie with the name __msabio will be written,
and in the nginx config you can write if ($
http_cookie
~* "__msabio" ) { set $flag 1;}
Answer the question
In order to leave comments, you need to log in
If your sessions are stored in files, you can check the existence of the file in php.net/manual/ru/session.configuration.php#ini.se...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question