How many types of cookies in PHP?
There are 2 types of cookies: (1) session-based which ends at the end of the session. (2) Persistent cookies which are written on harddisk. Session cookies expire toward the end of the session. This implies, when you close your browser