Re: newbie cookie question

From: Date: Fri, 01 Dec 2000 21:37:39 +0000
Subject: Re: newbie cookie question
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-4236@lists.php.net to get a copy of this message
Try a echo with only the cookie variable. You are not setting the expire time. If you close the browser the cookie will be lost . I suggest you use a complete cookie form, it's more reliable. Jayme. http://www.conex.com.br/jjeffman -----Mensagem Original----- De: Larry Hotchkiss <lhotch@unicap.com> Para: 'PHP windows list' <php-windows@lists.php.net> Enviada em: sexta-feira, 1 de dezembro de 2000 19:07 Assunto: [PHP-WIN] newbie cookie question > I am just playing around at the moment and I have a script that sets a > couple of cookies. I am verifying that the cookies are set by checking the > "warn me before accepting cookie" option in the netscape browser. I see the > cookie being set as well as its value. Now, I am under the impression that > if my cookie code appears as follows: > > setcookie("cookie_user",$form_user_id); > > I should be able to access the data within the cookie as $cookie_user. > After entering data and having it saved to a cookie another page is called > where I am simply trying to display the $form_user_id by doing the > following: > > echo ("Welcome: $cookie_user"); > > I get the welcome portion, but $cookie_user seems to be unavailable. Any > ideas as to what I am obviously overlooking? > > --------------------------------- > Larry Hotchkiss > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#4236) next »