Skip to content

Commit

Permalink
修正session有效期问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed May 19, 2023
1 parent 8611260 commit 0d248a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/think/middleware/SessionInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function handle($request, Closure $next)

$response->setSession($this->session);

$this->app->cookie->set($cookieName, $this->session->getId());
$this->app->cookie->set($cookieName, $this->session->getId(), $this->session->getConfig('expire'));

return $response;
}
Expand Down

0 comments on commit 0d248a0

Please sign in to comment.