Re: [PHP] Session logic question

2004-01-02 Thread Al
Thanks for the reply. i just found the bug in my code. I had a statement in the second script: $_SESSION = $array; that obviously, completely replaced everything in the $_ SESSION buffer. These little I gotchas can be fun. Chris Shiflett wrote: --- Al <[EMAIL PROTECTED]> wrote: Everyt

Re: [PHP] Session logic question

2004-01-02 Thread Chris Shiflett
--- Al <[EMAIL PROTECTED]> wrote: > Everything works fine, except when I include another script file that > also uses the $_SESSION buffer. > > What appears to be happening is that start_session() on the second > script reinitializes the session buffer and I lose the data from the > first sessi

[PHP] Session logic question

2004-01-02 Thread Al
I use the $_SESSION buffer extensively on my site without a problem, except one. Maybe someone can help me understand the problem. I have a simple page counter with a test to see if the page has been counted for the user. start_session(); * * [additional code] * if($_SESSION['ct