note 129314 added to session.configuration
| From: | usrhlp@yahoo.com | Date: | Tue, 05 Mar 2024 17:26:12 +0000 |
| Subject: | note 129314 added to session.configuration | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221235@lists.php.net to get a copy of this message | ||
The session.save-path doesn't work in 8.3.3 as it did in previous versions on windows / IIS.
upgrading from 8.1 to 8.3 causes the session save path to be interpreted differently.
To fix this you have to write the absolute path to the session folder location within php.ini.
An example on windows using IIS would be something along the lines of
C:\inetpub\wwwroot\sessiontmp
Leaving the session path line commented out or even specifying "\tmp" within php.ini
causes the session path to be incorrectly assigned which prevents all sessions from being created.
After manually adding the full local server path for your session temporary folder within PHP.INI,
can sessions be created again.
Even creating the folders in the correct location within your inetpub folder fails to fix the issue
with the 8.3.3.
Reverting back to PHP 8.1.26 also reverts the behaviour back to previous and all default PHP.INI
settings work correctly and sessions can be created as expected. This shows it is an issue with PHP
8.3.3.
I spent 3 hours diagnosing that error hopefully i have saved you time too.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.131 (proxied: 195.224.48.38)
----
Manual Page -- https://php.net/manual/en/session.configuration.php
Edit -- https://main.php.net/note/edit/129314
Del: integrated -- https://main.php.net/note/delete/129314/integrated
Del: useless -- https://main.php.net/note/delete/129314/useless
Del: bad code -- https://main.php.net/note/delete/129314/bad+code
Del: spam -- https://main.php.net/note/delete/129314/spam
Del: non-english -- https://main.php.net/note/delete/129314/non-english
Del: in docs -- https://main.php.net/note/delete/129314/in+docs
Del: other reasons-- https://main.php.net/note/delete/129314
Reject -- https://main.php.net/note/reject/129314
Search -- https://main.php.net/manage/user-notes.php