Tags
PHP , Lamp
Asked 8 years ago
17 Nov 2016
Views 1402
Phpworker

Phpworker posted

PHP Warning: Unknown: Failed to write session data

in Php Web Application , Login suddenly stop working .
so i check more about it and i got following error

 write failed: No space left on device (28) in Unknown on line 0
  PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
ravi

ravi
answered Nov 30 '-1 00:00


echo ini_get('session.save_path');

it will print session save path .

or you can go to php.ini check where is the session.save_path and its value will show you path of the folder where session file get saved . and make sure that folder exist.

in error it self says tmp folder exists in your server or it have write access enable
ok but it shared server how can i change the write acess to tmp folder - Phpworker  
Nov 17 '16 23:49
hmm you should contact your hosting provider in that case - ravi  
Nov 17 '16 23:50
Post Answer