note 82290 deleted from ref.session by betz

From: Date: Fri, 04 Apr 2008 10:49:18 +0000
Subject: note 82290 deleted from ref.session by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-137920@lists.php.net to get a copy of this message
Note Submitter: Mark ---- <?php // dodownload.php session_start(); $phph = $_GET['phph']; $date = date("D, d M Y H:i:s O"); $date_encrypted = base64_encode($date); if ($phph == $_SESSION['php']); { if ($_SESSION['session_date'] == $date_encrypted); { echo "wored"; session_destroy(); } } ?> <?php // download.php session_start(); $version = $_GET['version']; $date = date("D, d M Y H:i:s O"); $date_encrypted = base64_encode($date); $phph = md5(md5($date)); $_SESSION['session_date'] = $date_encrypted; $_SESSION['php'] = $phph; header('Location: dodownload.php?phph='.$phph); ?> Whats wrong?

« previous php.notes (#137920) next »