On Wed, 21 Jul 2004 18:43:12 -0400, Five <[EMAIL PROTECTED]> wrote:
> 
> "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> 
> 
> > On Wed, 21 Jul 2004 17:50:36 -0400, Five <[EMAIL PROTECTED]> wrote:
> > >
> > > "Five" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> > > > page1.php
> > > > <?php
> > > > session_start();
> > > > echo 'page #1<br>';
> > > >
> > > > echo $_SESSION['favcolor'];
> > > > $_SESSION['favcolor'] = 'green';
> > > >
> > > > echo '<br><a href="page2.php">page 2</a>';
> > > > ?>
> > > >
> > > > ----------------------------------------------------
> > > > page2.php
> > > > <?php
> > > > session_start();
> > > > echo 'page #2<br>';
> > > >
> > > > echo $_SESSION['favcolor'];
> > > > $_SESSION['favcolor'] = 'blue';
> > > >
> > > > echo '<br><a href="page1.php">page 1</a>';
> > > > ?>
> > >
> > > Actually the above code doesn't initialize the variable as either green or blue. 
> > > It leaves it blank.
> > >
> >
> > Are you behind any kind of firewall or proxy? Are you blocking
> > cookies? These could be stopping the session from working period.
> >
> > You should have said that it wasn't working period. Your original
> > e-mail lead me to believe that it could be set initially.
> >
> > --
> > DB_DataObject_FormBuilder - The database at your fingertips
> > http://pear.php.net/package/DB_DataObject_FormBuilder
> >
> > paperCrane --Justin Patrin--
> 
> 
> The test code at
> 
> http://ca.php.net/manual/en/function.session-start.php
> 
> worked so I knew sessions were working to some extent.
> 

Did you use the normal link or the SID link?

-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

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

Reply via email to