Session is defined as $_SESSION[‘varname’] in PHP. A session makes the web pages interaction in easy manner. Basically, session is used to store variables that can be used by multiple pages on same server. It’s totally different from cookie system whereas cookie is stored on client side and so we can’t share confidential information over cookies like login/register password or credit.. Read more