Ejemplo n.º 1
0
 public static function destroy()
 {
     self::clear_user_data();
     Session_destroy();
 }
Ejemplo n.º 2
0
<?php

session_name("Vaccine");
Session_start();
Session_destroy();
header('Location: ../login.php?msg=4');
Ejemplo n.º 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');
}