Example #1
0
 public static function destroy()
 {
     self::clear_user_data();
     Session_destroy();
 }
Example #2
0
<?php

session_name("Vaccine");
Session_start();
Session_destroy();
header('Location: ../login.php?msg=4');
Example #3
0
function eliminarSesion()
{
    unset($_SESSION['valid_user']);
    unset($_SESSION['password']);
    unset($_SESSION['nombre']);
    unset($_SESSION['apellido']);
    unset($_SESSION['carrito']);
    Session_destroy();
    header('Location: index.php');
}