Re: cookie question

From: Date: Sat, 19 Jun 2004 22:18:29 +0000
Subject: Re: cookie question
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-188666@lists.php.net to get a copy of this message
i figured it out ty "Joel Kitching" <linolium@gmail.com> wrote in message news:a61df40404061915107b3abd8c@mail.gmail.com... > There are many examples (in the comments) at the manual entry for > set_cookie at php.net; go try one of those. > > On Sat, 19 Jun 2004 16:07:34 -0600, water_foul > <phpdbnews@aaron.aichlmayr.net> wrote: > > > > 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 > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.general (#188666) next »