litebearer Posted May 6, 2010 Share Posted May 6, 2010 I happen to use meta tag redirect frequently in error trapping etc. Was wondering what the pros and cons are as far as uisn header vs meta thanks, Quote Link to comment https://forums.phpfreaks.com/topic/200860-pros-and-cons-of-header-redirect/ Share on other sites More sharing options...
premiso Posted May 6, 2010 Share Posted May 6, 2010 Header is better since it is done on the server. The user cannot disable this or turn it off (well they can disable redirects all together, but usually headers are allowed). Meta redirects people tend to turn off / block just because of their XSS nature, which can redirect to exploit codes to be infected. So yea, doing it on the server level, it is "more secure" from the end users point of view and it is harder from them to "disable", which most do not disable this feature. Quote Link to comment https://forums.phpfreaks.com/topic/200860-pros-and-cons-of-header-redirect/#findComment-1053952 Share on other sites More sharing options...
Daniel0 Posted May 6, 2010 Share Posted May 6, 2010 The user cannot disable this or turn it off (well they can disable redirects all together, but usually headers are allowed). The user can do whatever it wants with the stuff you send it. Quote Link to comment https://forums.phpfreaks.com/topic/200860-pros-and-cons-of-header-redirect/#findComment-1053996 Share on other sites More sharing options...
PFMaBiSmAd Posted May 6, 2010 Share Posted May 6, 2010 Redirecting all over the place, regardless of the method used to perform the redirect, just to handle form processing and user error display, wastes time and server resources. Form processing, forms, and display of user error messages should all occur on a single page. Quote Link to comment https://forums.phpfreaks.com/topic/200860-pros-and-cons-of-header-redirect/#findComment-1054005 Share on other sites More sharing options...
JonnoTheDev Posted May 6, 2010 Share Posted May 6, 2010 If you use a meta tag then the content has to be served to the client prior to the redirect. Using a 301 header on the server does not require any content to be sent to the client prior to the redirect. Quote Link to comment https://forums.phpfreaks.com/topic/200860-pros-and-cons-of-header-redirect/#findComment-1054061 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.