note 42747 added to function.session-name

From: Date: Thu, 27 May 2004 17:48:51 +0000
Subject: note 42747 added to function.session-name
Groups: php.notes 
Request: Send a blank email to php-notes+get-70202@lists.php.net to get a copy of this message
This may sound no-brainer: the session_name() function will have no essential effect if you set session.auto_start to "true" in php.ini . And the obvious explanation is the session already started thus cannot be altered before the session_name() function--wherever it is in the script--is executed, same reason session_name needs to be called before session_start() as documented. I know it is really not a big deal. But I had a quite hard time before figuring this out, and hope it might be helpful to someone like me. ---- Manual Page -- http://www.php.net/manual/en/function.session-name.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42747 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42747&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42747&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70202) next »