99x interview question

How does PHP handle cookies and sessions