Hello Pravesh,A PHP session variable is used to store information about, or change
settings
for a user session. Before you can store user information in your PHP session, you must
first start
up the session. session_start() function is used for start
session into PHP
page.

To resolve your problem you can try something like following code. PHP Script Code: