-
Notifications
You must be signed in to change notification settings - Fork 73
DOC Document how FileSessionHandler interacts with open_basedir
#868
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
DOC Document how FileSessionHandler interacts with open_basedir
#868
Conversation
| It's best practice to avoid using deprecated code where possible, but sometimes it's unavoidable. This API will all continue to be available at least until the next major release. | ||
|
|
||
| - The [`Session.session_store_path`](api:SilverStripe\Control\Session->session_store_path) configuration property has been deprecated. Use `session.save_path` in ini configuration instead. | ||
| - The [`Session.session_store_path`](api:SilverStripe\Control\Session->session_store_path) configuration property has been deprecated. Use [`session.save_path`](https://www.php.net/manual/en/session.configuration.php#ini.session.save-path) in ini configuration instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link should have already been there
|
|
||
| When using the `FileSessionHandler` save handler the [`open_basedir`](https://www.php.net/manual/en/ini.core.php#ini.open-basedir) PHP configuration option can cause problems. If that option has a value set, the location where session files are saved (defined by [`session.save_path`](https://www.php.net/manual/en/session.configuration.php#ini.session.save-path)) must be within a directory declared in `open_basedir`. Otherwise session functionality won't work. | ||
|
|
||
| Note that including the sessions diretory in `open_basedir` will allow any PHP code to interact with files in that location. If you don't want that to be the case, you can do one of the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Note that including the sessions diretory in `open_basedir` will allow any PHP code to interact with files in that location. If you don't want that to be the case, you can do one of the following: | |
| Note that including the sessions directory in `open_basedir` will allow any PHP code to interact with files in that location. If you don't want that to be the case, you can do one of the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
1b274b0 to
e644425
Compare
Issue
FileSessionHandlerinteracts withopen_basedir#865