I want to increase the time of keeping items in the cart for a non-logged in user. By default is about 1h (after this time when i refresh page articles are gone). I tried to change php.ini “session.cache_expire” but it doesn’t work at all.
The parameter you mentioned, ‘session.cache_expire’, is not the appropriate one for managing session duration in PHP.
Instead, you should look at increasing the value of ‘session.gc_maxlifetime’. You can find more details about this parameter on the official PHP documentation site at this link: PHP Manual: Session Configuration
However, please be aware that increasing this parameter will also increase the number of simultaneous active sessions. This could become an issue if your system is handling a large number of users at the same time.
In case your system is indeed managing a high number of concurrent users, you might want to consider utilizing an in-memory database, like Redis, to store session data. This can help maintain system performance even with many active sessions.