How to resolve this o_rdwr session error?

0

How can I resolve this php session failed o_rdwr no such file or directory

The error occurs when I log in to the server, however, locally it does not give any error and loga normally someone could help me?

    
asked by anonymous 30.09.2015 / 02:21

1 answer

0

Assign write permissions to the specified path in session.

In Linux / Unix environment, permission 0777.

If you do not have directory access, set your own path to a location where you have access to change 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 ()

<?php       
session_save_path('/aqui/caminho/completo/onde/as/sessoes/serão/salvas/');

session_start();
?>

The permission need not necessarily be 0777. All you have to do is set a value that allows read and write. However, to not complicate too much, just set to 0777.

    
30.09.2015 / 03:53