i have this piece of code
Code: Select all
ob_start();
session_start();
$_SESSION = array(); // unset all of the session variables
session_destroy();
unset($cartId);Code: Select all
// There is no cookie set. We will set the cookie
// and return the value of the users session ID
setcookie("cartId", session_id(), time() + (3600));
return session_id();or am i wrong.... ?
i dont think my session is getting destroyed as i still have items in cart (and i can see it in my database, as i am adding it)
can anyone help me out with destroying my session when the user goes to a certain page??
thanx heaps