session_start (); funtion is used to create a session in php. In php session is used to create a temporary storage. So we can manage the login controls via session.
You must call only one session for one page. Save the session data into a session variable. Example $_SESSION ['user'] = 'prohcj'; you can able to access this data from anywhere in your project. unset (); is used to clear your session data.
You must call only one session for one page. Save the session data into a session variable. Example $_SESSION ['user'] = 'prohcj'; you can able to access this data from anywhere in your project. unset (); is used to clear your session data.