PHP
Update PHP default save path
This function sets the location of PHP's default session save path.
Important:
When you disable the Web Server role, the system disables this function.
get/php_set_session_save_path
Query parameters
overwrite0 | 1
Whether to overwrite the existing session save path in the php.ini file.
- 1 — Overwrite the existing value in the php.ini file.
- 0 — Do not overwrite the existing value in the php.ini file.
pathstring
Example:/var/cpanel/php/sessions
The directory in which to save session information.
Warning:
For security reasons, do not set this value to /tmp or another insecure location.
Response
HTTP Request was successful.
Example response
{
"metadata": {
"command": "php_set_session_save_path",
"reason": "OK",
"result": 1,
"version": 1
}
}