On Wednesday 03 April 2002 04:19, Jason Wong wrote:
> On Thursday 04 April 2002 01:04, R. Lindeman wrote:
> > okay i'll explain a bit
> >
> > i want my sessions to store some values but instead of storing them their
> > doing nothing at all here's some code
> >
> > // beginning of registering of values
> >
> > session_start();
> >
> > session_register("fu");
> > session_register("bar");
> >
> > $fu    =    "fu";
> > $bar  =    "bar";
> >
> > // end of registering values
> >
> > //getting values
> >
> > $fu  = $HTTP_SESSION_VARS["fu"];
> >
> > echo $fu;
> >
> > //end of getting values
>
> If you are using PHP > 4.06 then try:
>
> $fu = $_COOKIE["fu"];

Hmm, are you setting and reading the cookie on the same page? If so, it can't 
be done. You need to either set it on one page then read on another, or set 
it then refresh the page.




-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
It doesn't much signify whom one marries, for one is sure to find out
next morning it was someone else.
                -- Will Rogers
*/

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

Reply via email to