'user got kicked out from php session under php8 and memcached

we just migrated a bigger application from PHP5.6/memcached to PHP8.0/memcached. The application is running fine up to some problems with the session. In some situations, the user is forwarded to the login screen while the session disappeared. When he re-logins, he ends up on the same point where he was before he got kicked out. This means the session itself was not destroyed - he still has the same session id and data. In the logs, I can't find anything, neither in the apache logs nor in the memcached logs.

Does anybody have an idea what can cause such a problem, and how to solve it? I use: PHP 8.0.14 memcached 3.2.0 libmemcached 1.0.18

With regards, Georg



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source