Sessions in PHP

php1.php
<?php
session_start();
session_register(“count”);
$count++;
?>

php2.php
<?php
session_start();
$vu = HTTP_SESSION_VARS(“count”);
echo “n$vun”;
session_destroy();
?>

You have to put session_start() at start of every program that is within that session.
HTTP_SESSION_VARS() will read value of session variable within brackets.
When using $count variable in a function, you must specify:
global $count; else the variable will get a NULL value.