What is php session | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is php session

sessions for login in php

10th Feb 2018, 1:43 PM
Amaning De-graft Emmanuel
Amaning De-graft Emmanuel - avatar
2 Answers
+ 1
by the help of session we store information it to use other page of php. Session is most important in php. first we include function 'session_start();' in starting now store any data in e.g. $_SESSION['username']="Ashutosh"; now this data include other php page again first start session_start(); now echo $_SESSION['username']; // Ashutosh
14th Feb 2018, 9:40 AM
Ashutosh