Skip to content
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

Store sessions in database instead of files #184

Open
frank9999 opened this issue Jan 4, 2024 · 0 comments
Open

Store sessions in database instead of files #184

frank9999 opened this issue Jan 4, 2024 · 0 comments
Labels
enhancement New feature or request Priority: Low Low priority issue

Comments

@frank9999
Copy link
Member

Symfony stores sessions in files by default. If your application is served by multiple servers, you'll need to use a database instead to make sessions work across different servers.

At random times we also experience the following error:
Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13)

Replacing file based sessions with database sessions should fix both cases.

How to:
https://symfony.com/doc/current/session.html#store-sessions-in-a-relational-database-mariadb-mysql-postgresql

@frank9999 frank9999 added enhancement New feature or request Priority: Low Low priority issue labels Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority: Low Low priority issue
Projects
None yet
Development

No branches or pull requests

1 participant