Closed davidcoutadeur closed 2 months ago
See also the conversation in this PR: https://github.com/ltb-project/self-service-password/pull/949/files#diff-60c04a04215ce092db74c81c7eaf4bf5e6c49f796b4ae6e3c526ce70758f33f6
I have found and implemented a solution based on Symfony cache.
See #967
It's quite extendable. For example, we could define another storage simply: memcached, redis,... Complete list here: https://symfony.com/doc/current/components/cache/cache_pools.html
TODO:
The goal is to remove things like:
in htdocs/sendtoken.php, htdocs/resetbytoken.php, htdocs/sendsms.php (but not necessarily for lib/captcha/InternalCaptcha.php which needs a session maintained at client side)
For this, we need to find a way to maintain server side sessions. Ideally with multiple possibilities of storage (file, redis,...)
Depending on the complexity, maybe we won't have time for doing this in 1.7.0.