botiga_php/logout.php

8 lines
135 B
PHP
Raw Permalink Normal View History

<?php
session_start();
unset($_SESSION['username']);
unset($_SESSION['userid']);
session_destroy();
header("Location: ./home.php");
?>