What is the difference between Session and Cookies in PHP ?
There are given following differences between Session and Cookies in PHP.
PHP COOKIES
- It store data at client side browser as text file format.
- It store limit amount of Data.
- It store only 4kb (4096 bytes) file.
- It doesn’t hold multiple variables.
- It is less secure.
- We can set the expiry time of cookie
- Cookies function must be appear before the HTML.
This comment has been removed by a blog administrator.
ReplyDelete