29 Program to start session in PHP

Program:

<?php

    session_start();



    $_SESSION["favcolor"] = "green";

    $_SESSION["favanimal"] = "cat";



    echo "Session Variables are SET";

?>


Output:

 Program to start session in PHP

Previous
Next Post »