Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as PHP by Felipe ( 16 years ago )
<?php

// A sessão precisa ser iniciada em cada página diferente
if (!isset($_SESSION)) session_start();

// Verifica se não há a variável da sessão que identifica o usuário
if (!isset($_SESSION['UsuarioID'])) {
 // Destrói a sessão por segurança
 session_destroy();
 // Redireciona o visitante de volta pro login
 header("Location: index.php"); exit;
}

?>

 

Revise this Paste

Your Name: Code Language: