CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 'session_start()' errors

Print topic Send  topic

Author Message
Lance

Posts: 6
Posted: 05/10/2005, 6:42 PM

I get these errors when I attempt to view via Live Page and in my browser:
-------------------------------------------------------------------------------------
Warning: session_start(): open(/tmp\sess_acfffc54f1a42972837066a0a167f814, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php on line 9

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php:9) in C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php on line 9

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php:9) in C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php:9) in C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php:9) in C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php:9) in C:\Program Files\Apache Group\Apache2\htdocs\TaskManager\Common.php on line 12

Warning: Unknown(): open(/tmp\sess_63dfca6e423e75a02b3d80d7c05a495a, 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 (/tmp) in Unknown on line 0
-------------------------------------------------------------------------------------

I've scoured the code and checked to make sure the files are in the correct directory in Apache. I'm stumped. Anyone able to help?

Thanks,
Lance
View profile  Send private message
Last Hero
Posted: 05/10/2005, 10:06 PM

You must correctly setup PHP.
Section [Session], variable session.save_path

P.S.: RTFM first
Lance

Posts: 6
Posted: 05/11/2005, 6:41 AM

Quote Last Hero:
P.S.: RTFM first

You're kind of a jerk. But thanks for your help. I'm new at PHP.
View profile  Send private message
peterr


Posts: 5971
Posted: 05/11/2005, 11:17 AM

Lance, try these:
http://www.phpbuilder.com/lists/php-db/2004041/0098.php
http://groups-beta.google.com/group/comp.lang.php/brows...48bcf749d65f663
http://groups-beta.google.com/groups?q=%22Warning%3A%20...lr=&sa=N&tab=wg

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Lance

Posts: 6
Posted: 05/11/2005, 11:44 AM

Thanks Peter,

These look very helpful. I was having a hard time figuring out what Unknown on line 0 was referring to and I couldn't find a definition for session_start() within the project. I think I can get it now.

Lance
View profile  Send private message
Uliyr
Posted: 05/16/2005, 12:01 PM

Make folder "tmp" in drive C:\
Lance

Posts: 6
Posted: 05/16/2005, 12:46 PM

Thank you, everyone. I've got it working.

Lance
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.