Hey guys, I seem to be having some problems getting PHP sessions to work out on my site. I'm not the best scripter, but I can usually do well enough to get by. This time, though, I don't have as much time to try to track down what's messing up, so I was hoping for some help :-).
Basically, I have a site which works fine on my own server, but it is not working when moved to my TCH account. I've created a small shopping cart, but on TCH, the session only seems to remember the last item put into it.
The session variable is $_SESSION["cart"], which holds an array of items, each item being an array of attributes as well. I plan on doing pulls from the database for the attributes in the future, but for now I'm just trying to get what I have now working.
The only place in the code that's being touched where the $_SESSION variable is being updated:
$cart = array();
if(isset($_SESSION["cart"]))
$cart = $_SESSION["cart"];
array_push($cart, $item);
$_SESSION["cart"] = $cart;
The site can currently be found at www.irish.josbweb.com.
Anyway, thanks for any help you can give. And if I've read other posts well enough over the years, I give a hardy "good to be here" in response to the incoming deluge of "welcome"s!