Tedd, I think according to PHP manual. Session_start() must be the first line in the code. Dont worry it will remember your session until you close the browser and also it wont duplicate it. Thanks On Fri, Aug 15, 2008 at 4:39 PM, tedd <tedd.sperling@xxxxxxxxx> wrote: > At 1:47 PM -0500 8/15/08, Boyd, Todd M. wrote: > >> Have you tried: >> >> echo SID; >> >> ...? I'm wondering if you're going to get different values on the two >> pages. What that means beyond two different sessions is beyond me, but >> it's a start. >> >> >> Todd Boyd >> Web Programmer >> > > Todd: > > I added code to show the SID and it's the same, but still nothing happens. > > http://www.webbytedd.com/b2/session-test/index.php > > I know what the problem is, but don't know how to fix it. > > If you will look at the code, I am using a variable within the SESSION > declaration: > > $_SESSION[$i] = $i; > > If I comment that out, the $_SESSION['test'] will be passed. > > Thanks, > > tedd > > -- > ------- > http://sperling.com http://ancientstones.com http://earthstones.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >