Closed lewweiming closed 4 years ago
## form_endpoint.php $flash = $session->getFlash(); $flash->set('data', [ 'test' => true ]); header('Location: ' . $_SERVER['HTTP_REFERER']);
The flash data is empty after redirection. Did I miss out something?
To commit the session use the save method:
save
// ... $flash = $session->getFlash(); $flash->set('data', [ 'test' => true ]); $session->save(); header('Location: ' . $_SERVER['HTTP_REFERER']);
The flash data is empty after redirection. Did I miss out something?