0
Assign write permissions to the path specified in Session.
On Linux/Unix environment, permission 0777.
If you don’t have access to the directory, set up a proper path to a location where you have access to change the folder permissions.
Example:
<?php
ini_set('session.save_path','/aqui/caminho/completo/onde/as/sessoes/serão/salvas/');
session_start();
?>
You can also use the session_save_path function()
<?php
session_save_path('/aqui/caminho/completo/onde/as/sessoes/serão/salvas/');
session_start();
?>
The permission need not necessarily be 0777. Just set a value that allows reading and writing. However, not to complicate too much, just set it to 0777.