hi. This has probably been asked about before by somebody earlier i dont know, buta few variables i'm trying to pass with sessions aren't being passed that i know of.
ok here is my basic idea:
For testing only right now, I log onto my catalog page, putting ?username=matt to hopefully pass the variable 'username' and then once i am on that page, i have at the top, something like these couple lines
<?
session_start();
session_register("username");
?>
well, it looks like it would work, but I am not sure if its being passed, i think that one is, but later on my "select a department" page, I have it where a department is selected, that passes to the next page to display products like i want it to, but the trouble is, when I want to come back from an 'add to cart' or whatever, page, the page breaks. apparently the department variable ( $dept1) is not being passed back to the products page. Do I have to still pass it along with the other variables on the "add" link, i.e,
<a href='add.php?some_variables+$for_the_cart&$dept1'>add
or how can i get my department variable, $dept1, passed?
two quick questions now:
is there a way to list all the variables that I registered for the session?
and does passing variables with ?variable have anything to do with sessions or is that a different animal