Skip navigation

Setting cookie values

Setting cookie values: PHP with MySQL Essential Training (2013)
Setting cookie values: PHP with MySQL Essential Training (2013)

PHP's setcookie function enables you to set cookie values with arguments for name, value, and expiration. You may want to keep a cookie for 24 hours, a week, or even 10 years. You submit expiration using a Unix timestamp, but this video shows that you don't need to deal with Unix because PHP uses the time function to set the Unix time stamp. Remember that hackers use cookies to trick your site, so always encrypt critical data in your MySQL databases.

Resume Transcript Auto-Scroll
Skill Level Beginner
14h 32m
Show More Show Less

Q: This course was revised on 6/4/2013. What changed?

A: The old version of this course was 6 years old and it was time for a complete revision, using PHP 5.4. (The tutorials will work with any version of PHP and covers any differences you might encounter). The author has also added updated installation instructions for Mac OS X Mountain Lion and Windows 8. The topics and end project are the same, but the code is slightly different. It also addresses frequently asked questions from the previous version.

Q: This course was updated on 5/20/2015. What changed?

A: We added one movie called "Changing the document root in Yosemite," which helps the Mac installation run more smoothly.

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month