This question shows research effort; it is useful and clear
2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
当用户点击任何地方时,如何重新启动会话?我创建了一个请求侦听器:
public function onKernelRequest(GetResponseEvent $event)
{
$session = new Session();
$session->start();
//$event->getRequest()->getSession()->start();
}