I’m running the same version of a site on my local development machine and an online staging server. Setting redirects (header: Location) and cookies works fine through my local machine, but on the remote server cookies often aren’t set (but sometimes are), and redirects rarely work.
What happens is the redirect half works – it goes to the page in question (as I can see from the address bar) but an empty page is returned. I then have to click the ‘Go’ button and it forwards as it should.
For example, on ‘submit’ of a form, the user goes to login.php, which logs them in of course, then forwards them to home.php. This works on the local server but on the remote server it will stop at login.php until I press ‘Go’ again.
Note: There’s no error being returned, and I’m not passing any whitespace or HTML etc. before the redirect/cookie set etc.
Does anyone have any recommendations?
Many thanks