On my logout route, I would like to redirect the user to the login route, but would like to notify the user they have been logged out. I would ideally like to do that using headers so it is invisible to the user. Is there a way to redirect with headers? If not, is there another way to pass invisible(to the user) parameters?
You cannot do this. You will need to use flash messages or something else.
My understanding is Flash messages are not available yet on v3. Is that correct?
We don’t currently provide an implementation. There are other librarys that do though.
composer require ocramius/psr7-session is a popular one.