Project

General

Profile

Feature #20606 » 0011314.patch

Administrator Admin, 2009-06-10 16:12

View differences:

t3lib/class.t3lib_userauth.php (Arbeitskopie)
// If new session or client tries to fix session...
if (!$id || !$this->isExistingSessionRecord($id)) {
// New random session-$id is made
$id = substr(md5(uniqid('').getmypid()),0,$this->hash_length);
$id = $this->createSessionId();
// New session
$this->newSessionID = TRUE;
}
......
}
}
/**
* Creates a new session ID.
*
* @return string The new session ID
*/
public function createSessionId() {
return substr(md5(uniqid('') . getmypid()), 0, $this->hash_length);
}
(1-1/2)