You are here: Re: Reading a cookie « PHP Programming Language « IT news, forums, messages
Re: Reading a cookie

Posted by william.clarke on 02/07/07 22:35

I'm not clear on one thing, why don't you want to use setcookie to
create the initial cookie, you have control over what goes into the
cookie so isn't that manual enough for you.

eg. setcookie ("printer", "A", time() + 3600); //Set value of the
printer cookie to "A"

The cookie is definitely sent to the client browser (I checked my
cookie with Mozilla) so I'm not sure what you meant by "I see that in
PHP it stores the cookie in
memory." Just make sure the setcookie statement comes before any
output. Surely this could be the cookie could be set when a user first
logs in?
Sorry if I'm totally missing the point here.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация