Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2784 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72949 invoked by uid 1007); 25 Jun 2003 13:57:17 -0000 Message-ID: <20030625135717.72948.qmail@pb1.pair.com> To: internals@lists.php.net Reply-To: "Justin Hannus" References: <1056290055.1849.7.camel@localhost.localdomain> Date: Wed, 25 Jun 2003 09:46:55 -0400 Lines: 60 Organization: vci X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Posted-By: 63.76.208.30 Subject: Re: Double warnings with session_start From: jhannus@visualconceptsinc.com ("Justin Hannus") 1 2 5 session inizializzata It appears that line 1. has the "output" that forces the headers sent, in this case, just a newline. Anything outside the tags are treated as STDOUT forcing the php module to send the headers before you start your session. Try moving your 4 session inizializzata "Michel 'Ziobudda' Morelli" wrote in message news:1056290055.1849.7.camel@localhost.localdomain... > Hi, I'm devoloping a book for PHP so I'm writing a chapter about > session. And I have found this new error with > /usr/local/php5-17062003/bin/php -v > PHP 5.0.0-dev (cli) (built: Jun 17 2003 21:40:52) > Copyright (c) 1997-2003 The PHP Group > Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies > > The little file.php is > > 1 > 2 3 session_start(); > 4 ?> > 5 session inizializzata > > and this is the output: > > > Warning: session_start(): Cannot send session cookie - headers already > sent by (output started at /home/httpd/html/LIBRO/sessioni/1.php:2) in > /home/httpd/html/LIBRO/sessioni/1.php on line 3 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at /home/httpd/html/LIBRO/sessioni/1.php:2) > in /home/httpd/html/LIBRO/sessioni/1.php on line 3 > session inizializzata > > Note the double warning. > > The other error for session is the not working of session_decode into a > class for managing session > (http://www.ziobudda.net/test/session4-3.phps). With PHP4 there is no > problem with this. > > Bye. > -- > michel 'ziobudda' morelli >