Re: [PHP4BETA] session question...

From: Date: Tue, 23 Nov 1999 23:10:29 +0000
Subject: Re: [PHP4BETA] session question...
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-6784@lists.php.net to get a copy of this message
On Tue, Nov 23, 1999 at 03:02:48PM -0800, David Sheckler wrote: > I've read the docs, but session variables have presented quite the trial > for me. The docs need some major improvements; I know that, but I don't have the time to do it currently. > My first question is, does apache or php4 require certain modules > compiled with it so php4/apache can use session variables? My first > assumption (after checking my syntax) was that I had missed some compile > options or modules. It's compiled in by default. > I've compiled php4b3 with --enable-trans-sid, --enable-track-vars, > --with-mysql, --with-apache=/opt/apache_1.3.9. I read a couple of posts > that said you had to have trans-sid and track-vars. Both are optional; track-vars is required to make the cookie vs. URL-propagation test work (otherwise SID will always be defined). > Apache was compiled with php4 and mod_rewrite. > > I'm attempting do a '<META http-equiv="refresh" content="15; > URL=http://198.145.105.139/clm2/clm2.php4">' of a > web page, every 15 > seconds or so, when I refresh I want to maintain the state of my count > so when I do, I can output the next 30 lines out to a fresh page. URL=http://...?<?=SID?> > __________________________ > count not registered > Warning: Cannot add header information - headers already sent in > /usr/local/apache/clm2/clm2.php4 on line 56 > ___________________________ You print out some text before the session is started (which causes the cookie to be sent). Any kind of data sent to the client before session_start/session_register is called will cause the above message. As a workaround, you might want to enable output_buffering in the configuration. -- Regards, Sascha Schumann Consultant

« previous php.version4 (#6784) next »