cyon

Well-Known Member
PartnerNOC
Jan 15, 2003
320
0
241
hy,

I have a problem with php sessions.

these two lines:

<?php session_start();
echo session_id();
?>
shows the following error:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/cyonch/public_html/html/session.php:10) in /home/cyonch/public_html/html/session.php on line 10

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/cyonch/public_html/html/session.php:10) in /home/cyonch/public_html/html/session.php on line 10
ccd0af3a22777e412ac91fd7483f111f

has anyone an idea what the problem could be?

the site with the session can be found here:
http://www.cyon.ch/html/session.php

the phpinfo() of my server can be viewed here:
http://www.cyon.ch/html/phpinfo.php

thx for your suggestions..

dave.

cPanel.net Support Ticket Number:
 
Last edited:

norm

Well-Known Member
Apr 23, 2002
53
0
306
Make sure there is no whitespace character's above the first <? and after the ending ?>

cPanel.net Support Ticket Number:
 

cyon

Well-Known Member
PartnerNOC
Jan 15, 2003
320
0
241
..there are no whitespaces.

cPanel.net Support Ticket Number: