Advertisement

07.28.2003 at 05:43PM PDT, ID: 20692954
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.0

Session_start() error running on localhost

Asked by eight17 in PHP Installation

Tags: , ,

I am using localhost for development and have created an area of my site where I use sessions to help inforce user login. My pages start like this:

<?php
// enforce login
session_start();
if (empty($_SESSION["userID"])) {
      $where = strtolower("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
      setcookie("backto", $where);
      header("Location: http://www.somewhere.com/contributors/login.php");
}
// rest of page...


I get the following errors:

Warning: session_start() [function.session-start]: open(/tmp\sess_52a808fa77f404fa43c51174ea1b5bbc, O_RDWR) failed: No such file or directory (2) in f:\apache\Apache\htdocs\ssp\contributors\index.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at f:\apache\Apache\htdocs\ssp\contributors\index.php:3) in f:\apache\Apache\htdocs\ssp\contributors\index.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at f:\apache\Apache\htdocs\ssp\contributors\index.php:3) in f:\apache\Apache\htdocs\ssp\contributors\index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at f:\apache\Apache\htdocs\ssp\contributors\index.php:3) in f:\apache\Apache\htdocs\ssp\contributors\index.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at f:\apache\Apache\htdocs\ssp\contributors\index.php:3) in f:\apache\Apache\htdocs\ssp\contributors\index.php on line 7
1064: You have an error in your SQL syntax near '' at line 1


My php.ini files shows:

[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler.
***more documentation...***
session.save_path = "F:\php\sessiondata"    ; argument passed to save_handler

; Whether to use cookies.
session.use_cookies = 1

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
session.use_only_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =


The sessiondata directory does exist, and it has three session cookies already, so I know it can't be that PHP cannot write to that file. On my live site the same files work perfectly. (I have cross-referenced the results of phpinfo() locally and remotely and can find no differences that would cause a problem.)

Can anyone tell me what the problem is here and how to fix it? It would be a tremendous help!Start Free Trial
[+][-]07.28.2003 at 06:01PM PDT, ID: 9024398

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Installation
Tags: file, cannot, directory
Sign Up Now!
Solution Provided By: psadac
Participating Experts: 9
Solution Grade: A
 
 
[+][-]07.29.2003 at 02:08AM PDT, ID: 9026415

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.29.2003 at 08:43AM PDT, ID: 9028857

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.02.2003 at 09:46PM PDT, ID: 9056927

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.03.2003 at 03:55PM PDT, ID: 9063352

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.04.2003 at 08:15AM PDT, ID: 9071302

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.04.2003 at 08:26AM PDT, ID: 9071463

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.04.2003 at 08:50AM PDT, ID: 9071776

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.04.2003 at 10:48AM PDT, ID: 9072709

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2003 at 07:37AM PDT, ID: 9100214

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.15.2003 at 05:33AM PDT, ID: 9157342

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.15.2003 at 05:36AM PDT, ID: 9157383

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.20.2003 at 04:43PM PDT, ID: 9192081

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.22.2003 at 01:25AM PDT, ID: 9201561

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.22.2003 at 06:37AM PDT, ID: 9203164

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.25.2003 at 03:51AM PDT, ID: 9215217

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.05.2003 at 03:02PM PDT, ID: 9299169

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.01.2003 at 01:10AM PDT, ID: 9464915

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.30.2003 at 06:24PM PST, ID: 9654915

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.28.2003 at 06:27AM PST, ID: 10007368

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.24.2004 at 02:41AM PST, ID: 10190425

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32