Sometimes I got this error :
Warning: open(/tmp/sess_8f084adb4ce23b068d4002d18500df6c, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
The file and the directory exist, and then if I remove manually the temp-session file everything goes ok
my scripts are structured in this way:
<?
include('general_include_inc');
........
........
?>
My general include file :
<?
//classi del progetto
include("Intervalli.class");
include("xmlfile.class");
//Inizio sessione
session_start();
?>
on session close I call the script washer.php which does the following:
<?
//Var: 'statoacq' Controllo Acquisitori in esecuzione
if (session_is_registered('stato_acq'))
{
session_unregister("stato_acq");
}
//Distruzione sessione per Garbage Collector
session_destroy();
?>
I don't know but seems that sometimes session temp files seems to remain locked !!
my php.ini session settings are the following:
Loc Mstr
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_trans_sid 0 0
and session supput is enabed.
Is there somtething wrong in my setting ?
Is there something wrong in structoring php files in this way ?
Pllzzz Help !!!π J@ystickπ
ThanX in Advance