473,321 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

PHP session_start() errors

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
1 3350
ronverdonk
4,258 Expert 4TB
Have you started your script in the document root?

Ronald :cool:
Sep 28 '06 #2

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

Similar topics

5
by: cowofchaos | last post by:
when I use the session_start() function at the top of my scripts I get 5 errors on the page If anyone can help please do this has been a problem for a while and I cannot do much more work on my...
2
by: Shapper | last post by:
Hello, On a Session_Start I want to do this: 1. GET "culture" value of a cookie named MyCookie. NOTE: MyCookie can hold many values. 2. IF MyCookie doesn't exist OR "culture" value doesn't...
6
by: Joe Befumo | last post by:
I just created the default personal site project in Visual Studio 2005, and it worked perfectly -- very nice. Next, I'd like to import some stat-capture code that I have working in a Visual Studio...
19
by: lawrence k | last post by:
How can I find out where my script is outputting to the screen for the first time? My error logs are full of stuff like this: PHP Warning: session_start(): Cannot send session cache...
5
by: paladin.rithe | last post by:
I'm running into an issue with session_start(). I see that you can't run it twice, otherwise it causes an issue. That's fine, and makes sense. I also saw some ideas on how to get around this if...
2
by: IchBin | last post by:
I am getting the error message below when ever I try to start my script on two different servers. I am not getting any errors off of my PC. I have looked around and found the answer a simple one. I...
6
by: comp.lang.php | last post by:
I am using session_start() on index.php and for some reason sometimes it'll fail. No warnings, no errors, no notices, not even after prepending error_reporting(E_ALL) and ini_set('display_errors',...
4
by: three-eight-hotel | last post by:
I'm somewhat of a newbie to PHP coding, but have developed a site using the technology, and have been pleasantly surprised by the capabilities offered. I am more comfortable in the ASP world,...
5
by: siyaverma | last post by:
Hi, I am new to php, i was doing some small chnages in a project developed by my collegue who left the job and i got the responsibility for that, After doing some changes when i run it on my...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.