Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 5 of 5

This is a discussion on session_start() All the sudden not working in the Shared & Semi-Dedicated forum
After almost two months using my website without changes, today i got emails complaining about the site not being usable due to a session_start() error... ...

  1. #1
    JPC Member
    Join Date
    Mar 2004
    Location
    Lisbon / Portugal
    Posts
    25

    Question SESSION.SAVE_PATH change???

    After almost two months using my website without changes, today i got emails complaining about the site not being usable due to a session_start() error...

    I cant figure out what's wrong since i DONT change the code since August... Maybe someone could help me out?

    How can i clean the /tmp dir if i cant see it? the one i have when i log in is completly empty

    here's the error message...

    Warning: session_start(): open(/tmp/sess_3ef8648f316bd212d76e9b3cf4c265f4, O_RDWR) failed: Permission denied (13) in /home2/jdocajan/public_html/ntg/includes.php on line 2

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home2/jdocajan/public_html/ntg/includes.php:2) in /home2/jdocajan/public_html/ntg/includes.php on line 2

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home2/jdocajan/public_html/ntg/includes.php:2) in /home2/jdocajan/public_html/ntg/includes.php on line 2
    I tried uploading all the php files thinking that it might be something that got corrupted, but no... every file is ok...

    The problem seems to be a bad session that might prevent others from using anymore sessions... OR any change made by JAG to the preferences of PHP, since PHP cant find the dir according to the report received...

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
    HTML Code:
    echo session.save_path;
    returns

    HTML Code:
    sessionsave_path
    Shouldnt it be something like a physical path (Ex: /tmp) ?

    The website is located at http://ntg.docaj.net

    Regards,
    RootShell
    Last edited by RootShell; 10-14-2004 at 07:18 AM.

  2. #2
    JPC Member
    Join Date
    Mar 2004
    Location
    Lisbon / Portugal
    Posts
    25
    PROBLEM SOLVED !!! JAG probably were doing some maintenance and already solved the error

  3. #3
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    session.savepath is just a setting in the php.ini configuration file. It doesn't translate into an PHP variable, although I think there is something like $_SERVER['SESSION_PATH'] or somethig similar (I'm not sure of the exact variable name). The echo statement that you posted did just what you told it to: it printed the string values of "session" and "save_path." The period disappeared since it is the string concatinator.

    Glad you got the problem fixed. It looks as if permissions on /tmp were temporarilly change from 777 to something that the server couldn't write to.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  4. #4
    JPC Member
    Join Date
    Feb 2003
    Location
    Austin, TX
    Posts
    6
    Having this problem on Zinc now.

  5. #5
    Old Hillbilly Connie's Avatar
    Join Date
    Sep 2001
    Location
    Hills of Missouri
    Posts
    2,648
    Quote Originally Posted by greenteagod
    Having this problem on Zinc now.
    I would open a ticked with support.

    Forum Moderators - Jag Staff

    Spam Whackers Blog - Dedicated to fighting Spam and providing General SEO Tips
    Organize your Kitchen or purchase Kitchen Accessories at Condells
    Ihelpyou Forum - Dedicated to "Best Practices" SEO

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •