By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,780 Members | 1,549 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,780 IT Pros & Developers. It's quick & easy.

PHP session_start() errors

P: 1
I am trying to load my website running on IIS v6 Windows 2003 and I got the following errors. Please help me. Thanks.

Warning: session_start() [function.session-start]: open(C:\PHP\sessiondata\sess_2d12f45e67883f9c2bd92 62562b79eb5, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 7

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php:7) in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 7

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php:7) in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 7

Notice: Undefined index: current_user in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 8

Notice: Undefined index: account_id in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 9

Notice: Undefined index: account_email in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 10

Notice: Undefined index: security in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 11

Notice: Undefined index: acc_code in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 12

Notice: Undefined index: eval_end in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 13

Notice: Undefined index: user_state in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 14

Notice: Undefined index: default_company_id in C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php on line 15

Fatal error: Call to undefined function mysql_connect() in C:\Inetpub\wwwroot\pum\components\Core.class.php on line 43

Warning: Unknown: open(C:\PHP\sessiondata\sess_2d12f45e67883f9c2bd92 62562b79eb5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\PHP\sessiondata) in Unknown on line

--------------------------------------
Source Code Used

<?php
session_start();
$current_user = $_SESSION['current_user'];
$account_id = $_SESSION['account_id'];
$account_email = $_SESSION['account_email'];
$security = $_SESSION['security'];
$acc_code = $_SESSION['acc_code'];
$eval_end = $_SESSION['eval_end'];
$user_state = $_SESSION['user_state'];
$def_comp_id = $_SESSION['default_company_id'];
?>
Sep 28 '06 #1
Share this Question
Share on Google+
1 Reply


ronverdonk
Expert 2.5K+
P: 4,258
Have you started your script in the document root?

Ronald :cool:
Sep 28 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.