Last active
April 6, 2018 07:35
-
-
Save sapran/b6db2aa8bdb10f4d39fa7df95da80b0e to your computer and use it in GitHub Desktop.
Code fragment from @ethicalhack3r's DVWA: github.com/ethicalhack3r/DVWA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$html = ""; | |
if ($_SERVER['REQUEST_METHOD'] == "POST") { | |
if (!isset ($_SESSION['last_session_id'])) { | |
$_SESSION['last_session_id'] = 0; | |
} | |
$_SESSION['last_session_id']++; | |
$cookie_value = $_SESSION['last_session_id']; | |
setcookie("dvwaSession", $cookie_value); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment