Managing sessions...

From: Date: Fri, 20 Jan 2006 16:53:36 +0000
Subject: Managing sessions...
Groups: php.general 
Request: Send a blank email to php-general+get-228961@lists.php.net to get a copy of this message
Hi again, Ok, it's probably not the first time you have a question about sessions with PHP ;-) I've tried to read mails, documentation, searching on Internet but, finally, I think everything is not clear !!! First of all, I understand that, if session.auto_start is not on '1', I have to write session_start on each page I use !!! OK. Before this line, I put options : ini_set("session.use_only_cookies",1); ini_set("session.use_trans_sid",0); ini_set("error_reporting",E_ALL); and then : session_start(); I think it is very heavy to write... I read about ini_set("session.auto_start",1) but, on my server (Debian), it doesn't seem working... And I also read about options which can be not set if I use auto_start... So, I'd like to put my options (use_trans_sid, 0, etc...) and to have lite scripts. Is it possible ? Isn't there, like in asp, a global.asa where I can put all my parameters ? Thank you very much. David.

« previous php.general (#228961) next »