What is Session in PHP ?

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*/
/* add variable in session */
 $_SESSION['website'] = 'anvar.in';
/* to end session*/

Leave a Reply

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