You are here: Re: getting stuck up with setcookie « All PHP « IT news, forums, messages
Re: getting stuck up with setcookie

Posted by Michael Landin Hostbaek on 11/25/05 12:11

cricketunes@yahoo.com tried to tell us something, and all I got was:
> I thought I can store them up in different cookies and use them[Ideas
> for a better method would be most welcome].

Sessions ? Store the data in a DB ?

> Should setcookie() be called before you code any other statements? When
> I set 2 cookies at the top of the file and a third cookie after some
> processing, the 3rd cookie doesnt seem to be set at all.

Put the different variables in the same cookie - fx seperated by ':' or
extract them later with split or explode.


/mich



--
Michael L. Hostbaek
FreeBSD mich 7.0-CURRENT FreeBSD 7.0-CURRENT
Thu Sep 8 20:08 CEST 2005 root@mich:/usr/obj/usr/src/sys/S7010-1 i386

 

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

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