use microtime for session id

This commit is contained in:
Uwe Steinmann 2017-12-30 12:41:07 +01:00
parent 4f95d58c4b
commit 2ab62605b0

View File

@ -94,7 +94,7 @@ class SeedDMS_Session {
* @return string/boolean id of session of false in case of an error
*/
function create($data) { /* {{{ */
$id = "" . rand() . time() . rand() . "";
$id = "" . rand() . '-'.microtime() . '-'.rand() . "";
$id = md5($id);
$lastaccess = time();
$queryStr = "INSERT INTO `tblSessions` (`id`, `userID`, `lastAccess`, `theme`, `language`, `su`) ".