Call Us : +91-8376986802 (Viber, WhatsApp)

What is PHP Session?

When a user logs in an application, his details are usually stored in a session variable. This information is available to all pages in one application. Sessions in PHP work using a unique id for each visitor.

Starting a php session: This tag must also appear before the HTML tag.


Storing a session variable: Here in the sample variable value is set to 1



Destroying a session:


Leave a Reply