Re: Validation and session variables

From: Date: Wed, 27 Oct 2004 17:18:56 +0000
Subject: Re: Validation and session variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200458@lists.php.net to get a copy of this message
--- Chris Shiflett <shiflett@php.net> wrote: > On each page, it might be good to add some debugging > information near the > top (where session_start() is): > > <?php > session_start(); > echo '<pre>' . htmlentities(print_r($_COOKIE, true)) > . '</pre>'; > echo '<pre>' . htmlentities(print_r($_GET, true)) . > '</pre>'; > echo session_id(); > ... > I added this in , on top, right under session_start() as shown and get this error: Warning: Cannot modify header information - headers already sent by (output started at /home/lurkkcom/public_html/page1.php:6) in /home/lurkkcom/public_html/page1.php on line 54 So it's clashing with the redirect: Header ('Location: http://www.mysite.com/page2.php?'.SID); Stuart

« previous php.general (#200458) next »