How to start a session in php


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.



Related Post


Latest Post


Recent Posts Widget

Make sure to never miss a thing...

Get the latest news from the creative industry along with other creative goodies, conveniently delivered to social media.