note 59323 added to function.session-start

From: Date: Fri, 02 Dec 2005 22:58:24 +0000
Subject: note 59323 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-99502@lists.php.net to get a copy of this message
Call session_start() first! Using PHP v4.3.4, this worked fine: <?php require('includes/functions.php'); session_start(); ... ?> Using PHP 5.0.5, it broke, causing the session vars to be lost when the page was reloaded, even though nothing was '...output to the browser...' before calling session_start(). The fix, obvious now, was the devil to find: <?php session_start(); require('includes/functions.php'); ... ?> ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59323 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59323&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59323&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59323&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59323&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59323&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59323&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59323&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59323&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99502) next »