Skip to content

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.

@AdSchellevis AdSchellevis force-pushed the master branch 2 times, most recently from bfdf0d3 to 968e5f9 Compare March 3, 2025 20:25
@Kage
Copy link
Author

Kage commented Apr 2, 2025

Closing for a different PR I will open shortly

@Kage Kage closed this Apr 2, 2025
@Kage Kage deleted the php-sessname-patch branch April 2, 2025 03:27
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