Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vor jeder HTML Datei:
- <? session_start();
- session_destroy(); //DEBUG
- if(!(isset($_SESSION['login']))){
- header("Location: ttest.php");
- }
- ?>
- pw.php in der Datei:
- <?php
- $username = $_POST["username"];
- $password = $_POST["password"];
- if($username == "admin" && $password == "pass"){
- session_start();
- $_SESSION['login'] = true;
- header("Location: index.php");
- }
- else{
- header("Location: ttest.php");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement