Files
namaste/stubs/testSessionExpire.php
gramps 373ebc8c93 Archive: Namaste PHP AMQP framework v1.0 (2017-2020)
952 days continuous production uptime, 40k+ tp/s single node.
Original corpo Bitbucket history not included — clean archive commit.
2026-04-05 09:49:30 -07:00

18 lines
714 B
PHP

<?php
require_once(dirname(__DIR__) . '/config/sneakerstrap.inc');
$errors = [];
$tokenGUID = 'D8637D12-B514-2916-D01C-05E416755451';
$request = [ STRING_GUID_KEY => $tokenGUID, STRING_TOK_TYPE => STRING_TOK_TYPE_SES];
$meta = [ META_TEMPLATE => TEMPLATE_CLASS_SESSIONS, META_CLIENT => CLIENT_SYSTEM];
/** @var gacMongoDB $obj */
$obj = grabWidget($meta, $tokenGUID,$errors);
if (is_null($obj)) {
var_export($errors);
echo PHP_EOL;
exit('failed to create widget' . $eos);
}
/** @var gatSessions $template */
$template = $obj->template;
$payload = $template->buildExpireSessionPayload($request, $errors);
$obj->_updateRecord($payload);
echo 'Program ' .((!$obj->status) ? 'failed' : 'succeeded') . $eos;