S
S
sailorpapay2018-01-30 15:42:14
Nginx
sailorpapay, 2018-01-30 15:42:14

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

1 answer(s)
A
Andrey Burov, 2018-01-30
@BuriK666

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 question

Ask a Question

731 491 924 answers to any question