I'm having problems with storing and manipulating a variable in a session. I cut it down to the simplest code I could and it's still not working. Here's what I have:
<?
session_start();
session_register("MANICSHIFT_MONTH");
if ($MANICSHIFT_MONTH == "") $MANICSHIFT_MONTH = 6;
print $MANICSHIFT_MONTH;
?>
<a href="./test.php?MANICSHIFT_MONTH=<? print ($MANICSHIFT_MONTH - 1); ?>">BLAH</a>
That's the whole file. When I test it out, it shows the value of $MANICSHIFT_MONTH as 6 and has a link (BLAH) which points to test.php?MANICSHIFT_MONTH=5 and appends the sessionid to the end. When I click on the link, it comes back with $MANICSHIFT_MONTH still set as 6, and the link still says =5, but it no longer appends the sessionid to the end. What's going wrong?