ErrorException {#408 #severity: E_WARNING }
{ if ($this->isActive()) { throw new \LogicException('Cannot change the ID of an active session.'); } session_id($id); } /** * Gets the session name. */ /** * @return void */ public function setId(string $id) { $this->saveHandler->setId($id); } public function getName(): string { return $this->saveHandler->getName(); * @return void */ public function setId(string $id) { if ($this->storage->getId() !== $id) { $this->storage->setId($id); } } public function getName(): string { * * Do not set it when a native php session is active. */ if ($sess && !$sess->isStarted() && \PHP_SESSION_ACTIVE !== session_status()) { $sessionId = $sess->getId() ?: $request->cookies->get($sess->getName(), ''); $sess->setId($sessionId); } } return $sess; }); */ public function getSession(): SessionInterface { $session = $this->session; if (!$session instanceof SessionInterface && null !== $session) { $this->setSession($session = $session()); } if (null === $session) { throw new SessionNotFoundException('Session has not been set.'); } $request = $this->getRequest(); $authenticationException = null; if ($request->attributes->has(SecurityRequestAttributes::AUTHENTICATION_ERROR)) { $authenticationException = $request->attributes->get(SecurityRequestAttributes::AUTHENTICATION_ERROR); } elseif ($request->hasSession() && ($session = $request->getSession())->has(SecurityRequestAttributes::AUTHENTICATION_ERROR)) { $authenticationException = $session->get(SecurityRequestAttributes::AUTHENTICATION_ERROR); if ($clearSession) { $session->remove(SecurityRequestAttributes::AUTHENTICATION_ERROR); } // if ($this->getUser()) { // return $this->redirectToRoute('target_path'); // } // get the login error if there is one $error = $authenticationUtils->getLastAuthenticationError(); // last username entered by the user $lastUsername = $authenticationUtils->getLastUsername(); return $this->render('security/login.html.twig', ['last_username' => $lastUsername, 'error' => $error]); } $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS); $controller = $event->getController(); $arguments = $event->getArguments(); // call controller $response = $controller(...$arguments); // view if (!$response instanceof Response) { $event = new ViewEvent($this, $request, $type, $response, $event); $this->dispatcher->dispatch($event, KernelEvents::VIEW); $request->headers->set('X-Php-Ob-Level', (string) ob_get_level()); $this->requestStack->push($request); $response = null; try { return $response = $this->handleRaw($request, $type); } catch (\Throwable $e) { if ($e instanceof \Error && !$this->handleAllThrowables) { throw $e; } $this->boot(); ++$this->requestStackSize; $this->resetServices = true; try { return $this->getHttpKernel()->handle($request, $type, $catch); } finally { --$this->requestStackSize; } } $this->request = $request; } public function run(): int { $response = $this->kernel->handle($this->request); $response->send(); if ($this->kernel instanceof TerminableInterface) { $this->kernel->terminate($this->request, $response); }$app = $app(...$args);exit( $runtime ->getRunner($app) ->run());<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};No log messages
|
ErrorException
|
|---|
ErrorException:
Warning: session_id(): Session ID cannot be changed after headers have already been sent
at vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php:84
at Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy->setId()
(vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:191)
at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->setId()
(vendor/symfony/http-foundation/Session/Session.php:185)
at Symfony\Component\HttpFoundation\Session\Session->setId()
(vendor/symfony/http-kernel/EventListener/AbstractSessionListener.php:91)
at Symfony\Component\HttpKernel\EventListener\AbstractSessionListener->{closure:Symfony\Component\HttpKernel\EventListener\AbstractSessionListener::onKernelRequest():75}()
(vendor/symfony/http-foundation/Request.php:723)
at Symfony\Component\HttpFoundation\Request->getSession()
(vendor/symfony/security-http/Authentication/AuthenticationUtils.php:40)
at Symfony\Component\Security\Http\Authentication\AuthenticationUtils->getLastAuthenticationError()
(src/Controller/SecurityController.php:20)
at App\Controller\SecurityController->login()
(vendor/symfony/http-kernel/HttpKernel.php:181)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:197)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:29)
at require_once('/home/u262228329/domains/edenolam.com/public_html/freereads/vendor/autoload_runtime.php')
(public/index.php:5)
|