Sr. PHP Programmer Question:
Download Questions PDF

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

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 Interview Questions And Answers PDF

Previous QuestionNext Question
How to include a file to a php page?What is the use of header() function in php?