Hi, I'm having a problem with php creating a new session every time i visit the page instead of just using the existing one. This is a real PITA because i'm trying to make shopping cart. I dont think its the brower since it's configured to accept all cookies, allways from this particular domain. I'm just really lost. Oh, btw Im using a custom session handler. here's some code just in case anyone wants to help me.
<?php
require("./tests/cp.php");
$sess = cp_load_module("cp_sess");
$sess->init(); //this registers the session handler
session_name("Shopping Cart");
session_start();
if (!session_is_registered("cart")){
session_register("cart");
}
//here, $cart is ALLWAYS an empty variable. i dont get it
//i looked in the db and it makes a new session every time
//i refresh the page instead of using the existing one
print("xy<pre>");print_r($cart);print("</pre>");