Re: cookie question

From: Date: Sat, 19 Jun 2004 22:07:34 +0000
Subject: Re: cookie question
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-188664@lists.php.net to get a copy of this message
i did that and it doesn't say that theere there, how do you set cookies so that theyy dont expire (maby the expiration is set wrong...... i'm a newb with cookies "Joel Kitching" <linolium@gmail.com> wrote Are you sure you're trying to access them properly, and on the next > page refresh? > > ex) > > <?php > // Print an individual cookie > echo $_COOKIE["TestCookie"]; > echo $HTTP_COOKIE_VARS["TestCookie"]; > > // Another way to debug/test is to view all cookies > print_r($_COOKIE); > ?> > > On Sat, 19 Jun 2004 15:56:36 -0600, water_foul > <phpdbnews@aaron.aichlmayr.net> wrote: > > > > all i did was a function and some conditionals > > "Joel Kitching" <linolium@gmail.com> wrote in message > > news:a61df4040406191455457217d4@mail.gmail.com... > > > > > > > Did you do this before you sent some outut? This would send headers, > > > therefore causing you to not be able to send the "cookie" header. > > > > > > On Sat, 19 Jun 2004 15:51:00 -0600, water_foul > > > <phpdbnews@aaron.aichlmayr.net> wrote: > > > > > > > > whats wrong with this script > > > > setcookie('link' . $loopnum . '',$url,time()+3600*200); > > > > setcookie('name' . $loopnum . '',$name,time()+3600*200); > > > > it doesn't write the cookies > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: > > > > http://www.php.net/unsub.php > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.general (#188664) next »