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?
Answer:
Create session : session_start();
Set value into session : $_SESSION['USER_ID']=1;
Remove data from a session : unset($_SESSION['USER_ID'];
Set value into session : $_SESSION['USER_ID']=1;
Remove data from a session : unset($_SESSION['USER_ID'];
Previous Question | Next Question |
How to include a file to a php page? | What is the use of header() function in php? |