Källkodsbrowser

logout.php

8 lines UTF-8 Unix (LF)
1
2
3
4
5
6
7
8
<?php
session_start
();
session_unset(); // Ta bort alla sessionsvariabler
session_destroy(); // Döda sessionen
header("Location: index.php?msg=Du är nu utloggad");
exit();
?>