Reply to newbie: cookie values

Your name:

Reply:


Posted by Jeff on 01/04/07 17:09

Hey

I'm developing a web site using php 5.2.0

Is it possible to store more than one value in a cookie or must I create one
cookie for each value I want stored?

Lets say I want to store these values in a cookie:
username = "noob"
password = "easy"
ip_address = "127.0.0.1"
How should I do it?.. I mean should I use setcookie for each value or...
maybe I can store these values in the session, and then again store the
session in the cookie?

After a user has logged in I want the cookie to hold info about the user. So
after restarting the computer or restarting the internet browser the web
site should recognize the user so he don't need to login again. The use must
login again when the cookie expire or after the user has logout.

Any suggestions???

Jeff

[Back to original 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

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