** Note about using cli tools with the updated session directory

As noted before, I changed my VH session.save_path to "/var/lib/php/asterisksession").
In case some cli FreePBX tool should need to access them, it will have to be informed of the new location. I only know one case, when you loose your FreePBX admin password, and want to run "fwconsole unlock _session_id_" from the command line. In this case, if not informed of th new location, it will complain that it is unable to fond the session file.
You can inform fwconsole (i.e. the PHP interpreter for fwconsole) about it in various ways. I simply maed a copy of /etc/php.ini in /tmp/php.ini, then added this line in the [session] section:
session.save_path = "/var/lib/php/asterisksession"

Finally, run the unlock command this way:
PHPRC=/tmp/php.ini fwconsole unlock _session_id_

You may obtain the same result informing php explicitly on the command line of the needed option:
php -c /tmp/php.ini /usr/sbin/fwconsole unlock _session_id_
or without creating the custom /tmp/php.ini, informing php explicitly on the command line of the needed option:
php -d session.save_path=/var/lib/php/asterisksession /usr/sbin/fwconsole unlock _session_id_
