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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with starting a session 1

Status
Not open for further replies.

meeble

Programmer
Sep 24, 2002
137
GB
Hello,

I have the simple code:

<?php
session_start();
header(&quot;Cache-control: private&quot;);
?>


But this displays the error message:

PHP Warning: open(/tmp\sess_3f66892ae4cb2b189080529c71659bd3, O_RDWR) failed: No such file or directory (2) in c:\inetpub\ on line 2 PHP Warning: Cannot add header information - headers already sent in c:\inetpub\ on line 3 PHP Warning: open(/tmp\sess_3f66892ae4cb2b189080529c71659bd3, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP 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

What's wrong?

Cheers

James
 
You need to edit your PHP.ini file...

Find 'session.save_path' and make a valid path. My own line is shown below. Make sure you have a folder created to save the session data.

session.save_path = C:\PHP/sessiondata
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top