Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(isset($_SESSION['usr_id'])) {
- session_destroy();
- unset($_SESSION['usr_id']);
- unset($_SESSION['usr_name']);
- header("Location: index.php");
- } else {
- header("Location: index.php");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment