From e8cf1ac6773cf868ff79ed286494ea13b58da528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 17 Aug 2010 15:30:47 +0200 Subject: [PATCH] Generate new token on forcible generating of session id. --- libraries/session.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/session.inc.php b/libraries/session.inc.php index d22239411..f1ae66122 100644 --- a/libraries/session.inc.php +++ b/libraries/session.inc.php @@ -101,5 +101,6 @@ function PMA_secureSession() { // prevent session fixation and XSS session_regenerate_id(true); + $_SESSION[' PMA_token '] = md5(uniqid(rand(), true)); } -?> \ No newline at end of file +?>