Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Thursday, 2 October 2014

session_start and php

<?php
session_start();
echo "<h1>welcome to webpage";
$_SESSION["hello"]="college";
$_SESSION["web"]="Designing";
echo "<a href='new.php'>Next Page</a>";


?>



<?php
session_start();
echo "<h1>Page2</h1>";
if($_SESSION["computer"])
{
echo "Already Member";
}
else
{
echo "New User";
}
?>