note 39319 added to ref.session

From: Date: Sat, 24 Jan 2004 11:49:08 +0000
Subject: note 39319 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-64105@lists.php.net to get a copy of this message
I've just started working with sessions, it's my understanding that on a server that is not automatically set to start sessions you need the session_start(); in the header of each page. Now this works fine on the first page, where I declare a couple of variables however when I move to the second page to print those variables I have put session_start(); at the top but when I run the page I get the following error: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at <<But if I omit session_start() or use session_id() the variables are not passed>> Any ideas of what I am doing wrong? ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39319 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39319&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39319&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64105) next »