Part 3 - Why Cookies and Sessions are required | COOKIE and SESSION | PHP Super Global Variables

Опубликовано: 17 Май 2026
на канале: GoPHP
224
6

These variables are available with in the entaire project. The variables which we declared in one file, we can access them in another file.
In PHP, All the Super Global Variables are predefined. All Super Global Variables are array Data type. All Super Global Variables are Associative arrays.
What is a Protocol?
Set of rules and regulations to transfer the data between the network
There are two types of protocols

State Full Protocols:
The protocols which can remember each and every requests data are called state full protocols
Examples: FTP, TCP,...
These Protocols can remember each and every request data, so these protocols are very very slow

State Less Protocols:
The protocols which can NOT remember each and every requests data are called state less protocols
Examples: http, https
What is a cookie?
A cookie is a small amount of data/value that can be saved in the browsers