1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley
Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

Cookie Trouble?

Tuesday June 20, 2006
Cookies are relatively simple to use in PHP, but sometimes picking out the simplest problems can be the hardest. One common cookie problem is that you are sending data to your browser before the cookie. If this is the case, the cookie won't be set. You need to be sure to send the cookies in the header, before any HTML code is read.
Comments
August 27, 2007 at 4:16 am
(1) Jody says:

Regarding your PHP Cookie tutorial at

This works but shows the server time. How do I offset the time for my time zone? I am central and my server time is an hour ahead of me.

Thanks.

August 27, 2007 at 4:17 am
(2) Jody says:

Well I guess I don’t know how to use HTML on here.. your original PHP Cookie tutorial is at http://php.about.com/od/advancedphp/qt/php_cookie.htm

September 9, 2007 at 4:19 am
(3) Jody says:

I guess no one checks things around here anymore? ………….

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.