Page 1 of 1

Session Errors - Please Help!!!

Posted: Fri Jan 17, 2003 2:17 am
by liquidchild
I recieve the following error while trying to create a session with the code below - can some please help!.


ERROR:
Warning: open(/tmp\sess_606f841ec6dce0a7319a495c77753fee, O_RDWR) failed: No such file or directory (2) in C:\Intranet\php\database\MysqlConnect.php on line 3

Parse error: parse error, unexpected T_FUNCTION, expecting ',' or ';' in C:\Intranet\php\errorLogging\ErrorLogging.php on line 10

Warning: open(/tmp\sess_606f841ec6dce0a7319a495c77753fee, 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

CODE:
<?php

session_start();

include ("../errorLogging/ErrorLogging.php");

class MysqlConnect
{
/** Database connection properties **/
var $_mysql_host;
var $_mysql_user;
var $_mysql_password;
etc.....

Posted: Fri Jan 17, 2003 2:23 am
by volka
make sure that the parameter session.save_path in php.ini points to a valid directory.

Posted: Fri Jan 17, 2003 2:26 am
by twigletmac
There also appears to be a parse error within ErrorLogging.php - if you post the first 10 lines of that file we could take a look at it for you.

Mac

Posted: Fri Jan 17, 2003 2:38 am
by liquidchild
Thanks everyone, got it fixed and also the parse error! Thanks ;-)