faqts : Computers : Programming : Languages : PHP : Common Problems : Cookies

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

32 of 50 people (64%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How do I use cookies in PHP?

Apr 8th, 2001 12:50
Philip Olson, Nathan Wallace,


Documentation  :
  Read the manual (has many examples, user comments too)         :
  ----------------------------------------------------------------
    http://www.php.net/manual/en/function.setcookie.php
  Then read the Netscape specification                           :
  ----------------------------------------------------------------
    http://www.netscape.com/newsref/std/cookie_spec.html
Examples :
  Allows users to set colors preferences of site                 :
  ----------------------------------------------------------------
    http://yelvington.com/howtheme.php3 
  Developing a user personalization system with PHP and cookies  :
  ----------------------------------------------------------------
    http://www.devshed.com/Server_Side/PHP/Cookies/
  Feedback Form with a Cookie                                    :
  ----------------------------------------------------------------
    http://zend.com/zend/tut/feedback.php
  Adv: Cross domain cookies                                      :
  ----------------------------------------------------------------
    http://phpbuilder.com/columns/chriskings20001128.php3
Also consider the use of sessions :
    http://www.faqts.com/knowledge_base/view.phtml/aid/6621/fid/594