note 39319 rejected from ref.session by vincent
| From: | vincent@php.net | Date: | Sat, 24 Jan 2004 11:55:04 +0000 |
| Subject: | note 39319 rejected from ref.session by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64106@lists.php.net to get a copy of this message | ||
Note Submitter: johnw@mytyrrelstown.com
----
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?