Have been having a problem when using sessions in setting and retrieving the session name assigned when starting a session and registering variables.
Currently, on one page, session is set up like this:
session_name("MySession");
session_start();
session_register("variable");
$variable = "hello";
and then a link to another page, which displays this code:
session_start();
$mysession = session_name();
$myvariable = $variable;
print "Session Name is $mysession<br>\n
Session Variable is $myvariable<br>\n";
When I view this page, the stored session variable comes through, but the Session name is always PHPSESSID.
I feel like I am probably missing something really dumb, but cannot figure out what is wrong. Some of the session info I have found is pretty vague...so any help would be greatly appreciated.
-AM