note 22710 added to ref.session

From: Date: Thu, 27 Jun 2002 08:51:24 +0000
Subject: note 22710 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-32264@lists.php.net to get a copy of this message
For automatic session initialization on every page, you have to set the flag session.auto_start = 1 in php.ini. And you will get a warning in row 0, php couldn't open the session file, when your path for session files is set relative like this: session.save_path = ..\tmp, which can work perfectly with the session_start() functions. If changing autostart to 1 und having a relative save_path for sessions, the absolute directory path changes. That's because the path no longer refers to the current scripting file (where sesson_start() was executed before) but the system itself. Using Apache the tmp directory is to add to the folder "Apache Group". Than it works again. -- http://www.php.net/manual/en/ref.session.php http://master.php.net/manage/user-notes.php?action=edit+22710 http://master.php.net/manage/user-notes.php?action=delete+22710 http://master.php.net/manage/user-notes.php?action=reject+22710

« previous php.notes (#32264) next »