apeblog/app/common/extend/Session.php

20 lines
338 B
PHP

<?php
namespace app\common\extend;
use think\facade\Session as systemSession;
class Session
{
/**
* 设置sessionId
* @param string $sessionId
*/
public static function setId(string $sessionId)
{
systemSession::setId($sessionId);
systemSession::init();
systemSession::save();
}
}