apeblog/app/common/service/Session.php

20 lines
339 B
PHP

<?php
namespace app\common\service;
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();
}
}