Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/tmp session error - tried all previous suggestestions - no luk

Status
Not open for further replies.

blondy

IS-IT--Management
May 7, 2002
16
AU
Hi all,

Sorry to be a bore, I relise that this topic has been done to death. I have been through half a douzen posts about this problem, made the changes - but still getting the error (making me nuts!):

Warning: session_start() [function.session-start]: open(/tmp\sess_b0adda4a529508f851d93d7ef5585c48, O_RDWR) failed: No such file or directory (2) in c:\program files\apache group\apache\htdocs\php\app\tgsonline1\auth.php on line 14

We are running a 2K box with Apache 1.3.27 and PHP 4.3.0

I currently have session.save_path set to c:\temp

Any help would be greatly appreciated.

Cheers,

Therese


 
That error has more to do with how you've organized your code than anything.

An HTTP response (a communication going from a web server to a web browser) consists of two parts: an HTTP header section and a content section. The two sections must appear in that order and be separated by a blank line.

When you beging sending content, PHP assumes that you are finished sending headers and transmits that blank line. If after that you attempt to send a header (through the use of the header(), set_cookie() or session_start() functions), PHP correctly barfs.

Make sure that all use of the three aforementioned functions occur before you send any content to the browser.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top