docker-vulnerable-dvwa/dvwa/vulnerabilities/weak_id/source/low.php

14 lines
289 B
PHP
Raw Normal View History

2018-10-12 15:49:58 +00:00
<?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);
}
?>