public static function destroy() { self::clear_user_data(); Session_destroy(); }
<?php session_name("Vaccine"); Session_start(); Session_destroy(); header('Location: ../login.php?msg=4');
function eliminarSesion() { unset($_SESSION['valid_user']); unset($_SESSION['password']); unset($_SESSION['nombre']); unset($_SESSION['apellido']); unset($_SESSION['carrito']); Session_destroy(); header('Location: index.php'); }