Sr. PHP Programmer Question: Download Senior PHP Programmer PDF

How to create a session? How to set a value in session? How to Remove data from a session?

Tweet Share WhatsApp

Answer:

Create session : session_start();
Set value into session : $_SESSION['USER_ID']=1;
Remove data from a session : unset($_SESSION['USER_ID'];

Download Senior PHP Programmer PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
How to include a file to a php page?What is the use of header() function in php?