-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogout.php
More file actions
33 lines (28 loc) · 743 Bytes
/
logout.php
File metadata and controls
33 lines (28 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
header("Location:login.php");
session_start();
unset($_SESSION['id']);
unset($_SESSION['nome']);
unset($_SESSION['username']);
unset($_SESSION['senha']);
unset($_SESSION['email']);
unset($_SESSION['foto']);
unset($_SESSION['data-nasc']);
unset($_SESSION['cpf']);
unset($_SESSION['cidade']);
unset($_SESSION['estado']);
unset($_SESSION['log']);
unset($_SESSION['bairro']);
unset($_SESSION['num']);
unset($_SESSION['comp']);
unset($_SESSION['cep']);
unset($_SESSION['nome-empresa']);
unset($_SESSION['foto-empresa']);
unset($_SESSION['cnpj']);
unset($_SESSION['nivel-vendedora']);
unset($_SESSION['tel']);
unset($_SESSION['chave']);
unset($_SESSION['senha-normal']);
unset($_SESSION['categoria-id']);
//a preencher
session_destroy();