How to Start and End Session
Asked By
20 points
N/A
Posted on - 04/12/2012
Can anyone help me on how to start and end session using PHP? I really don’t have an idea on how to do it. Is there any function to do this? Please help.
Can anyone help me on how to start and end session using PHP? I really don’t have an idea on how to do it. Is there any function to do this? Please help.
Dear friend,
<?PHP
Session_start();
If(isset($_SESSION['userid']))
$_SESSION['userid']=$_SESSION[' userid ']+1;
Else
$_SESSION[' userid ']=1;
Echo "Views=". $_SESSION[' userid '];
//Unset session using
//Unset($_SESSION[' userid ']);
?>