i am attempting to set up functions to handle all my session work, and when i use the code below, the values for the session variables don't get registered properly. any help would be appreciated:
/ function file (functions.inc)/
<?
function session_init($eid) {
session_start();
$id = eid;
session_register("id");
}
?>
/ main file (index.php)/
<?
require('functions.inc');
session_init("some value");
echo "session value = $id\n";
?>