Это меня очень смущает.
сеанс modx и конфигурация cookie:
Код: Выделить всё
anonymous_sessions: Yes
default_username: (anonymous)
session_cookie_httponly: Yes
session_cookie_secure: Yes
session_handler_class: [empty]
session_name: PHPSESSID
Код: Выделить всё
curl -i -X GET "https://www.example.com/test-page" -b "PHPSESSID=adventure-time" -v
Код: Выделить всё
> GET /test-page HTTP/2
> Host: www.example.com
> User-Agent: curl/8.1.2
> Accept: */*
> Cookie: PHPSESSID=adventure-time
>
Код: Выделить всё
< HTTP/2 200
< date: Fri, 17 Nov 2023 09:58:21 GMT
< server: Apache
< expires: 0
< cache-control: no-store, no-cache, must-revalidate
< pragma: no-cache
< set-cookie: PHPSESSID=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; secure; HttpOnly
< vary: Accept-Encoding
< content-length: 1636
< content-type: text/html; charset=UTF-8
Код: Выделить всё
$_COOKIE['PHPSESSID']: adventure-time
session_id(): adventure-time
session_id() == $_COOKIE['PHPSESSID']: access granted
Подробнее здесь: https://stackoverflow.com/questions/775 ... s-sessions
Мобильная версия