As a side note, if you (or anyone else, for that matter) are having problems
with Tredosoft's MultipleIEs (http://tredosoft.com/Multiple_IE) and PHP
sessions, be sure to upgrade to at least the version that was released on
07/11/2006 (November 11, 2006) as versions before that had issues with
cookies and sessions.

On 3/30/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote:

On 3/30/07, Kim Johnson <[EMAIL PROTECTED]> wrote:
>
> Should I be recalling
> session_start?


As a general rule, you should call session_start() in *every* PHP script
that accesses $_SESSION. Where you call it depends on whether you're using
output buffering or not[1], but it must *always* be *before* you access
$_SESSION for the first time in that script.


[1] If you're not using output buffering (
http://us.php.net/manual/en/ref.outcontrol.php), then you *must* call
session_start() *before* any output is sent to the browser, otherwise you'll
get a "can't send headers because headers were already sent" error (this
means that the call to session_start() should probably be the very first
thing your script does). If you are using output buffering, then you can
call it pretty much anywhere in your script before you send the contents of
the output buffer to the browser.

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com




--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to