Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge cyon's Avatar
    Join Date
    Jan 2003
    Posts
    323

    Default problem with php sessions

    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 by cyon; 06-06-2003 at 06:03 PM.

  2. #2
    Member
    Join Date
    Apr 2002
    Posts
    54

    Default

    Make sure there is no whitespace character's above the first <? and after the ending ?>

    cPanel.net Support Ticket Number:

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge cyon's Avatar
    Join Date
    Jan 2003
    Posts
    323

    Default

    ..there are no whitespaces.

    cPanel.net Support Ticket Number:

Similar Threads & Tags
Similar threads

  1. Crazy sessions php
    By FeeL in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-11-2011, 11:15 AM
  2. /tmp not full but PHP can not create sessions
    By luijk in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-27-2009, 01:57 AM
  3. PHP Sessions Problem
    By Dweezel in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-15-2008, 08:13 AM
  4. php sessions errors after PHP 4.4.1 and apache 1.3.4 upgrade
    By SupermanInNY in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 11-11-2005, 04:43 AM
  5. Very Strange Problem: No PHP Sessions and /tmp is Empty!
    By mss6 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-09-2005, 11:26 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube