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

Update php.ini to add dynamic session.name value #8366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kage
Copy link

@Kage Kage commented Feb 21, 2025

This PR adds session.name={{system.hostname}} to the last line of src/opnsense/service/templates/OPNsense/WebGui/php.ini so that OPNSense sessions do not use the PHP default PHPSESSID cookie name. This PR permits multiple OPNSense instances to operate on the same hostname (e.g. via localhost from SSH tunneled sessions) without interfering with each other.

Fixes #8365

@AdSchellevis
Copy link
Member

I'm not sure we should change the session names for all users (and leak hostnames in the process) for a single use-case. We'll leave this one open for now for further discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Change PHP session name to be dynamic
2 participants