KDK Software interview question

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

Interview Answer

Anonymous

13 Jun 2017

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