Page MenuHomeIn-Portal Phabricator

D472.id1211.diff
No OneTemporary

File Metadata

Created
Mon, Jan 6, 5:09 AM

D472.id1211.diff

Index: core/kernel/session/session.php
===================================================================
--- core/kernel/session/session.php
+++ core/kernel/session/session.php
@@ -535,7 +535,10 @@
*/
function GenerateSID()
{
- $this->setSID(kUtil::generateId());
+ $this->setSID(
+ SecurityGenerator::generateNumber(100000000, 999999999)
+ ->resolveForPersisting(TABLE_PREFIX . 'UserSessions', 'SessionKey')
+ );
return $this->SID;
}

Event Timeline