Harlequin wrote:

Jason

Would there be anything wrong with using an include statement at the top of
every page and the include page could then start a session, execute queries
etc or would the session not start as it's not the first line in the
page...?


That's completely fine. The main thing is, you just want to have session keys get written before you start sending output.


Just to throw out another idea... Do you plan on having session keys used for *every* page? If so, then you could set your php.ini auto_prepend_file to automatically process your session script for every request. The main downside is if you have pages that don't really need the session vaiables then you'll be wasting resources when serving those pages.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to