If you want to pass important information from one page to another pages or if you want to store important information like user id, password then PHP session is best option for you.
PHP session is a global variable that is stored on the server. A variable that could be used on various page, that is called session in PHP. Cookies are also worked similar to session but cookies are stored...