Showing posts with label PHP Session. Show all posts
Showing posts with label PHP Session. Show all posts

November 10, 2014

PHP Session and Cookie


The main difference between sessions and cookies is that cookies are stored in the user's browsers, and session are stored in server.

A cookie is small file that store in user's computer. Cookie data expiry depend on expiration date where session retain until browser run.