I have a small app, that redirects on successful user sign in and also on app initialization it defines custom session handlers. Redirect is done this way: sprintf( '<html><head><meta http-equiv="refresh" content="%d;url=%s"/></head></html>', $delay, $url ); .
Now the question is. If I redirect this way, will it reach custom session handler during, that call?
You’re doing it wrong. Use the
header()function to send aLocationheader like so:Add that before any output is sent. And yes, the session will remain.