i am trying to reset a session after someone has gone to the checkout page.
also trying to delete the stuff from the old session
code:
<?php
$old_sessionid = session_id();
session_regenerate_id();
// end session resetting
// Begin Session Unregistering
$products= $_GET['products'];
$product = $_GET['proid'];
unset($_SESSION['products'][$key]);
// End Session Unregistering
?>
But it does not work, the stuff in the session is not deleted
any ideas
Ta