I want to store the created sessions in a directory above the root, except when I use any of the following:
session_save_path($_SERVER[\'DOCUMENT_ROOT\']
this works for me:
sudo chown -R www-data:www-data /var/lib/php/sessions