Welcome Guest, Not a member yet? Register   Sign In
how well does "redirect" work?
#1

[eluser]tomdelonge[/eluser]
I don't know exactly how it works, but I thought I read somewhere that it doesn't work in all browsers. It works for me under the newest firefox and ie. Now, my target audience for my website are not necessarily up to date. Are there going to be any problems with using this function? For example, when a customer clicks the buy link for a product, I want it to buy the product and then redirect to the cart so they can see what they've bought so far. What precautions do I need to take?

Thanks for anything you can tell me about this function.
#2

[eluser]BrianDHall[/eluser]
Good article on the subject: http://www.stevenhargrove.com/redirect-web-pages/

CI's url helper redirect() function generates an HTTP 302 redirect by default. http://www.codeignitor.com/user_guide/he...elper.html

It is considered safe to do nothing but use the html redirect, the unsupported browser issue is mostly a phantom. For those really paranoid though nothing stops you from calling redirect and then serving a page with a meta refresh redirect AND a javascript auto-redirect function, to be extra super sure the user gets there. But as the article states, you have to be real careful because search engines HATE, HATE those!

I've yet to run into an issue with the http redirect, it seems every major site on the internet now uses them. So if someone doesn't support it then yours will be the only site on the net they'll likely be able to visit Wink




Theme © iAndrew 2016 - Forum software by © MyBB