mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
Prevent session fixation
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@75 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
if (isset($_POST["server"])) {
|
||||
session_regenerate_id();
|
||||
$_SESSION["usernames"][$_POST["server"]] = $_POST["username"];
|
||||
$_SESSION["passwords"][$_POST["server"]] = $_POST["password"];
|
||||
if (count($_POST) == 3) {
|
||||
|
Reference in New Issue
Block a user