What Is a Cookie in PHP

Q

What Is a Cookie in PHP?

✍: FYIcenter.com

A

A cookie is a small amount of information sent by a Web server to a web browser and then sent back unchanged by the browser each time it accesses that server. HTTP cookies are used for authenticating, tracking, and maintaining specific information about users, such as site preferences and the contents of their electronic shopping carts. The term "cookie" is derived from "magic cookie", a well-known concept in computing which inspired both the idea and the name of HTTP cookies.

A cookie consists of a cookie name and cookie value. For example, you can design a cookie with a name of "LoginName" and a value of "FYICenter".

 

Sending a Cookie to the Browser in PHP

Understanding and Managing Cookies in PHP

Understanding and Managing Cookies in PHP

⇑⇑ PHP Tutorials

2016-11-05, 1579🔥, 0💬