Web Analytics Made Easy -
StatCounter sessions warnings? - CodingForum

Announcement

Collapse
No announcement yet.

sessions warnings?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • sessions warnings?

    I want to be able to use sessions but i get warnings.

    here is a little script i tried to execute

    PHP Code:

    <?php 

    session_start
    (); 
    session_register('hits');
    ++
    $hits;


    ?>


    this page has been viewed <?= $hits ?> times.
    these are the warnings i get.

    Warning: open(/tmp\sess_7cb6a9c6525ddd5d2570f563aab3f56b, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\hits.php on line 3
    this page has been viewed 1 times.
    Warning: open(/tmp\sess_7cb6a9c6525ddd5d2570f563aab3f56b, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

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


    can anyone tell me what the problem is and how can i fix it.

    i am using php version 4.2.3

  • #2
    And have you checked that the setting for session.save_path is correct and points to an existing directory in which PHP has writing rights?
    De gustibus non est disputandum.

    Comment


    • #3
      I am unsure where to check. Where is the path that i need to change? is it to point to the htdocs folder where all my php files are saved?

      Comment


      • #4
        Look in the php.ini file for session.save_path and change that to wherever. I've got mine set to my temporary internet files.

        Comment

        Working...
        X