Feature #20606 » 0011314.patch
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);
|
||
}
|
||