includes/sessions.php
changeset 595 b051eb79b158
parent 593 4f9bec0d65c1
child 603 33b274c8d357
--- a/includes/sessions.php	Thu Jul 03 15:08:35 2008 -0400
+++ b/includes/sessions.php	Thu Jul 03 15:34:09 2008 -0400
@@ -1464,7 +1464,7 @@
         return 'success';
       }
       // See if we can get rid of the cached decrypted session key
-      $key_bin = $aes->hextostring(strrev($this->sid_super));
+      $key_bin = hex2bin(strrev($this->sid_super));
       $key_hash = sha1($key_bin . '::' . $this->private_key);
       aes_decrypt_cache_destroy($key_hash);
       // Destroy elevated privileges
@@ -1479,7 +1479,7 @@
       {
         $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE);
         // See if we can get rid of the cached decrypted session key
-        $key_bin = $aes->hextostring($this->sid);
+        $key_bin = hex2bin($this->sid);
         $key_hash = sha1($key_bin . '::' . $this->private_key);
         aes_decrypt_cache_destroy($key_hash);
         // Completely destroy our session