mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
use microtime for session id
This commit is contained in:
parent
4f95d58c4b
commit
2ab62605b0
|
@ -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`) ".
|
||||
|
|
Loading…
Reference in New Issue
Block a user