Skip to content

Commit

Permalink
Deprecate modUserProfile->sessionid and do not set value
Browse files Browse the repository at this point in the history
  • Loading branch information
opengeek committed Jan 27, 2025
1 parent 42fe47a commit 90bc204
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/model/schema/modx.mysql.schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@
<field key="lastlogin" dbtype="int" precision="11" phptype="integer" null="false" default="0" />
<field key="thislogin" dbtype="int" precision="11" phptype="integer" null="false" default="0" />
<field key="failedlogincount" dbtype="int" precision="10" phptype="integer" null="false" default="0" />
<field key="sessionid" dbtype="varchar" precision="100" phptype="string" null="false" default="" />
<field key="sessionid" dbtype="varchar" precision="100" phptype="string" null="false" default="" /> <!-- deprecated - to be removed in 3.2 -->
<field key="dob" dbtype="int" precision="10" phptype="integer" null="false" default="0" />
<field key="gender" dbtype="tinyint" precision="1" phptype="integer" null="false" default="0" />
<field key="address" dbtype="text" phptype="string" null="false" default="" />
Expand Down
2 changes: 1 addition & 1 deletion core/src/Revolution/modUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public function addSessionContext($context)
$ua->set('logincount', $ua->logincount + 1);
$ua->set('lastlogin', $ua->thislogin);
$ua->set('thislogin', time());
$ua->set('sessionid', session_id());
/*$ua->set('sessionid', session_id());*/
$ua->save();
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/Revolution/modUserProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @property int $lastlogin A UNIX timestamp showing the last time the User logged in
* @property int $thislogin A UNIX timestamp showing the time this User currently logged in
* @property int $failedlogincount The number of failed logins this User has accumulated
* @property int $sessionid The PHP sessionid of the User
* @property int $sessionid The PHP sessionid of the User (deprecated—to be removed in 3.2)
* @property int $dob The date of birth of the User, in UNIX timestamp format
* @property int gender The gender of the user; 1 for male, 2 for female, 0 for unknown
* @property string $address The address of the User
Expand Down

0 comments on commit 90bc204

Please sign in to comment.