I am unable to start a session on my pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lawrence k

    I am unable to start a session on my pages

    I've put this code in a file that is included at the top of my page:

    session_start() ;
    echo SID;
    echo "was there a sid ?";


    The "was there a sid" shows up, but not the SID. Nor can I later get
    the session id using session_id().

    I thought maybe I was outputting some white space before these lines,
    blocking the headers from being sent, but when I look in the error log,
    there is only one error, and its unrelated:


    [08-Apr-2006 18:53:01] PHP Warning: getwhatpage(): Failed opening
    'showOneTag.php ' for inclusion (include_path=' .:/usr/share/pear') in
    /home/httpd/vhosts/bluecasts.com/httpdocs/tagIndexLibrary .php on line
    2243
    [08-Apr-2006 19:09:38] PHP Warning: getwhatpage(sho wOneTag.php):
    failed to open stream: No such file or directory in
    /home/httpd/vhosts/bluecasts.com/httpdocs/tagIndexLibrary .php on line
    2243
    [08-Apr-2006 19:09:38] PHP Warning: getwhatpage(sho wOneTag.php):
    failed to open stream: No such file or directory in
    /home/httpd/vhosts/bluecasts.com/httpdocs/tagIndexLibrary .php on line
    2243
    [08-Apr-2006 19:09:38] PHP Warning: getwhatpage(): Failed opening
    'showOneTag.php ' for inclusion (include_path=' .:/usr/share/pear') in
    /home/httpd/vhosts/bluecasts.com/httpdocs/tagIndexLibrary .php on line
    2243


    Go here and let me know if you get a session number:

    This domain name is available, own it today. Affordable payment options. Fast and professional service.



    Why would there be no SID???

  • larry@portcommodore.com

    #2
    Re: I am unable to start a session on my pages

    Isn't it session_id() not SID

    Also if that doesn't fix it, make sure you have php_session installed
    on your computer (on some packages it is an addin module for PHP)

    Larry

    Comment

    Working...