|
<?php
session_start();
if (!$PHPSESSID)
{
session_register('REP');
} else if ((!$REP))
{
session_register('REP');
}
?>
This will make the $REP variable global so you do not have to pass it anymore. It will remain to the browser is closed, and it is also passed to child browsers.
If you want to change the value or input a value just use normal php code.
<?php
$REP = 'John Doe';
?>
|