stephan.gerlach
03-07-2008, 05:35 AM
I have quite an embarrassing problem.
For some reason I can not set the session. I tripple checked that there is no output before it but it still comes up.
This is what I have
file index.php
this is the very first line
<?php include('includes/top.php'); ?>
file includes/top.php
<?php session_start(); ?>
This is the error message
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /index.php:1) in /includes/top.php on line 1
Now sometimes if I stop executing the script these symbols come up on the screen.
Anybody an idea what they mean?
For some reason I can not set the session. I tripple checked that there is no output before it but it still comes up.
This is what I have
file index.php
this is the very first line
<?php include('includes/top.php'); ?>
file includes/top.php
<?php session_start(); ?>
This is the error message
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /index.php:1) in /includes/top.php on line 1
Now sometimes if I stop executing the script these symbols come up on the screen.
Anybody an idea what they mean?