| How PHP handles Cookies?
In PHP we generally used cookie to identify a user. Cookie is little records that server stores on client computer. When the same PC asks for a page it will send the cookie as well. And with the help of PHP we can create and recover cookie values. Below are the some important aspects of cookies in PHP:-
(1)We can create 20 cookies per site or web app
(2)Initial size block for cookies is 50 bytes.
(3)And maximum size of cookie is 4096 bytes.
(4)By default cookies are temporary and transitory cookie saves in the browser only.
(5)Cookies are URL particular means not for gmail and yahoo
(6)We can only stores string values not objects because not possible to access any objects across the websites or webapp
(7)Cookies will maintain session id at back end after verify user identity in the encrypted form and it should be reside in browser of machine. | | |