-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use a lib for server side sessions #954
Comments
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:
|
- add upgrade notes, - add cache parameters in config, - remove expired cache entries, - remove some warning messages, - security: always display the same message: invalid token even if the user is not found in ldap, - add more logs, - set an expiration time for each cache entry
- use symfony cache for managing sessions, - add upgrade notes, - add 2 cache parameters in config, - remove expired cache entries, - remove some warning messages, - security: always display the same message: invalid token even if the user is not found in ldap, - add more logs, - set an expiration time for each cache entry, - set symfony/cache version in composer.json, - adding new cache bundled dependencies in packages and doc
- use symfony cache for managing sessions, - add upgrade notes, - add 2 cache parameters in config, - remove expired cache entries, - remove some warning messages, - security: always display the same message: invalid token even if the user is not found in ldap, - add more logs, - set an expiration time for each cache entry, - set symfony/cache version in composer.json, - adding new cache bundled dependencies in packages and doc
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.
The text was updated successfully, but these errors were encountered: