session still not destroyed after purchase
Hello,
My check out succes and failure page have the following code in place below: </html>...
Although this clears the products the orderreference id stays the same if you go shopping after having paid a previous order...
<?php
// Initialize the session.
// If you are using session_name("something"), don't forget it now!
@session_start();
// Unset all of the session variables.
$_SESSION = array();
// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
@setcookie(session_name(), '', time() - 42000,
$params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}
// Finally, destroy the session.
@session_destroy();
@session_regenerate_id();
?>
I have tried (based on examples in this forum) the following also:
1. No @ before session_destroy en regenerate
2. start session after regenerate_is.
But nothing helps the id stays the same on continueing to shop after a purchase has been made (no store user sessions used...)