I am trying to use sessions to store information ( a single row) i pulled out of a database....
for example this is what i do:
session_start();
$MemberID = $row["MemberID"];
$UserName =$row["UserName"];
session_register("MemberID", "UserName");
Print ("a link to anotherpage.php");
when the link for anotherpage.php is clicked it has this
session_start();
print ($UserName);
no session information is stored????
Also i tried this tutorial doesnt work
The first example (page1.php):
<?php
session_start();
$my_session_variable = "some value";
session_register("my_session_variable");
?>
Example 2 (page2.php):
<?php
session_start();
print "Value of 'my_session_variable': $my_session_variable";
?>
is there setting in php that one has to make sure is on for sessions to work....the php.ini file....? or is it the code? anyone know a good step by step phpsesssions tutorial?