Forum Moderators: coopster
Note: If you are using cookie-based sessions, you must call session_start() before anything is outputted to the browser.
[ca.php.net...]
Also note that you must start your session using session_start() before use of $_SESSION becomes available.
so, yes.
My normal files looks something like this:
<?php include('/some/path/to/prepend.inc');?>
Main content.... Can have anything here.
<?php include('/some/path/to/append.inc');?>
This way all my layout can be modified from a total of 3 files: prepend, append and my css file... And adding something like "session_start();" means adding one line to one file.