[thelist] Session cache limite and header information
Ian Anderson
ian at zstudio.co.uk
Mon Apr 10 05:39:26 CDT 2006
Dan Parry wrote:
> The error seems to be saying that output has started in mysqlconnect.php...
> Are there any errors being thrown in that file? Does it echo anything or
> send any headers?
Or, check for whitespace like spaces or empty carriage returns in the
included file.
I had this last year:
"In PHP, calls to header( "Location: whatever.php" ) were failing
silently whenever an include file was used to validate the user's
session data.
I thought it was something I was doing with cookies or session_start()
in my included file, but no...
Turned out there was a space *after* the closing "?> " in the included
file, which was getting written to the browser as unintentional output
at the start of the HTML. Of course, calls affecting HTTP header will
not work if output has already been written to the browser."
(tip from August 2005)
Cheers
Ian
--
_________________________________________________
zStudio - Web development and accessibility
http://zStudio.co.uk
Snippetz.net - Online code library
File, manage and re-use your code snippets & links
http://snippetz.net
More information about the thelist
mailing list