We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95bd7e2 commit 483ae3cCopy full SHA for 483ae3c
src/SwordEvent.php
@@ -249,7 +249,7 @@ public static function mainServerCreate(EventRegister $register)
249
$sessionId = Random::character(32); // 生成sessionId
250
// 设置向客户端响应的Cookie参数
251
$response->setCookie($sessName, $sessionId, time() + $session_conf['expire']);
252
- $request->withAttribute('setCookie', $sessName);
+ $request->withAttribute('setSession', $sessName);
253
}
254
// 存储sessionId方便调用,也可以通过其它方式存储
255
$request->withAttribute('sessionId', $sessionId);
0 commit comments