Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93616043
20130530.sessionhash.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 30, 04:41
Size
532 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 04:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22673868
Attached To
rPH Phabricator
20130530.sessionhash.php
View Options
<?php
$table
=
new
PhabricatorUser
();
$table
->
openTransaction
();
$conn
=
$table
->
establishConnection
(
'w'
);
$sessions
=
queryfx_all
(
$conn
,
'SELECT userPHID, type, sessionKey FROM %T FOR UPDATE'
,
PhabricatorUser
::
SESSION_TABLE
);
foreach
(
$sessions
as
$session
)
{
queryfx
(
$conn
,
'UPDATE %T SET sessionKey = %s WHERE userPHID = %s AND type = %s'
,
PhabricatorUser
::
SESSION_TABLE
,
PhabricatorHash
::
digest
(
$session
[
'sessionKey'
]),
$session
[
'userPHID'
],
$session
[
'type'
]);
}
$table
->
saveTransaction
();
Event Timeline
Log In to Comment