session in php this example show how to set session in php.
<?php
session_start();
$_SESSION['u']=$_post['name'];
$_SESSION['p']=$_post['pass'];
echo "welcome".$_SESSION['u']."<br/>";
echo "ur password is".$_SESSION['P'];
?>
session_start();
$_SESSION['u']=$_post['name'];
$_SESSION['p']=$_post['pass'];
echo "welcome".$_SESSION['u']."<br/>";
echo "ur password is".$_SESSION['P'];
?>