A Session is a logical object created by PHP engine to allow you to preserve data across the application, Sessions are commonly used to store temporally data to allow multiple PHP pages to offer a complete functional transaction for the same visitor.

/* To start session*/
 session_start();
/* add variable in session */
 $_SESSION['website'] = 'anvar.in';
/* to end session*/
 session_distroy();

Leave a Reply

Your email address will not be published. Required fields are marked *