Announcement

Collapse
No announcement yet.

Sessions...!!

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

  • Sessions...!!

    Hello,

    I have tried a unique code on two different servers but one gives me warnings and does not work... The following warning appears:

    /> Access denied.
    Warning: open(/tmp\sess_a5917e9e07d0c72dd76a198d846b8f27, 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

    The code is:

    Code:
    <?php
    ob_start();
    session_start();
    Can anyone help me with that?

  • #2
    make sure the /tmp direcotory exists on your linux machine. if it does not exists then create it or have your administrator create it.
    Jon Whitcraft
    Internal Systems Engineer - SugarCRM

    Comment


    • #3
      when you have no control over the server

      You can also just tell PHP where to put session data:
      PHP Code:
      <?php
      ini_set
      ("session.save_path""/path/tosave/session/data/");
      session_start();
      ?>

      Comment

      Related Topics

      Collapse

      Working...
      X