note 53545 rejected from ref.session by betz

From: Date: Sun, 05 Jun 2005 20:14:25 +0000
Subject: note 53545 rejected from ref.session by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-89974@lists.php.net to get a copy of this message
Note Submitter: mail at hughkernohan dot ndo dot co dot uk ---- The notes above explain: "Also note that you must start your session using session_start() before use of $_SESSION becomes available." It would be worth adding that $_SESSION variables are not available until something has been sent to the browser on the page - or at least that was my experience. Forgive if it is obvious or if it is explained elsewhere in the manual but it caused me much grief. (I was trying to be tidy and get the processing done before displaying any HTML.) Hugh Kernohan

« previous php.notes (#89974) next »