PDA

View Full Version : Sessions...!!


HSN
Mon 17th May '04, 12:03am
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:

<?php
ob_start();
session_start();

Can anyone help me with that? :cool:

sidhighwind
Mon 17th May '04, 4:19pm
make sure the /tmp direcotory exists on your linux machine. if it does not exists then create it or have your administrator create it.

sirspot
Tue 18th May '04, 12:48pm
You can also just tell PHP where to put session data:

<?php
ini_set("session.save_path", "/path/tosave/session/data/");
session_start();
?>