Re: Sessions Problem !!

From: Date: Fri, 06 Aug 2004 21:32:34 +0000
Subject: Re: Sessions Problem !!
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-193045@lists.php.net to get a copy of this message
Thanks Chris ... problem solved, I'm sorry but these configuration details is a bit new for me Originally I'm a C++ programmer and web development is not my major kind of work Thanks again "Chris Martin" <chris@chriscodes.com> wrote in message news:cf0r8l$p4u$1@sea.gmane.org... > Dre wrote: > > > the exact error messages are > > > > ============================================================================ > > ========================== > > > > Warning: session_start(): open(/tmp\sess_000c30790862f64268e755546b6fcbb2, > > O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache > > Group\Apache2\htdocs\maillist\maillist\admin.php on line 1 > > First, if you want to store session data on win32, you'll need to change > the session.savepath in your php.ini. > open it and search for: > session.save_path > and change it from > session.save_path = /tmp > to > session.save_path = C:\WINDOWS\Temp (Or wherever your temp folder is if > you're not on XP) > > > Warning: session_start(): Cannot send session cookie - headers already sent > > by (output started at C:\Program Files\Apache > > Group\Apache2\htdocs\maillist\maillist\admin.php:1) in C:\Program > > Files\Apache Group\Apache2\htdocs\maillist\maillist\admin.php on line 1 > > This error tells you that the output was started at line 1 of your > admin.php file. (maybe a blank line at the top of the script?) > > As Miles suggested: > "You have to call session_start() before any output to the page, even a > single space." > > -- > Chris Martin > Web Developer > Open Source & Web Standards Advocate > http://www.chriscodes.com/

« previous php.general (#193045) next »