You may check if a variable that the session is supposed to contain is still there, if so the session exists. Like this
session_start();
if ( isset($_SESSION["cust_id"])) {
// The session exists
//Distroy the session
session_destroy();
}
//Start a new session
//Don't know if you need session_start() before
// registring new values or not. You may try both
session_start();
// register new values in the session
$_SESSION["cust_id"]=$the_new_id;
Hope it helps
🆒