So when doing a redirect - doesnt not putting in a delay hurt you?

Discussion in 'Commission Junction' started by vetting, Nov 8, 2007.

  1. #1
    So I am redirecting like this
    echo "<meta http-equiv=\"refresh\" content=\"0;URL=$redirectlink\">";

    So does not putting in a delay hurt the results? If you dont put in a delay, is there a chance it wont drop the cookie?
     
    vetting, Nov 8, 2007 IP
  2. mrmonster

    mrmonster Active Member

    Messages:
    374
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I wouldn't trust meta redirect, if you have access to PHP it's very simple to write few lines of code and use the header Location to do a redirect on the server side instead.


    
    
    // need to add some validation to check that URL
    $url = $_GET['url'];
    header('Location: '.$url);
    exit();
    
    
    PHP:

    now if you send someone to yourphpfile.php?url=www.google.com it will forward them to www.google.com on the server side.
     
    mrmonster, Nov 8, 2007 IP
  3. KGL

    KGL Peon

    Messages:
    1,155
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #3
    So do redirects have a adverse effect on the cookies? Meta or otherwise.
     
    KGL, Nov 8, 2007 IP
  4. vetting

    vetting Peon

    Messages:
    193
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well Im passing an ebay item number to another file and redirecting that way. Im not sure in this case how I would do it any other way.

    So whats wrong with the meta redirect?
     
    vetting, Nov 8, 2007 IP
  5. yolkie

    yolkie Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    since there is delay in meta redirect, there is possibility that ur potential customer exit before the re-direct complete. the meta re-direct is visible to visitors, so ironically, it is considered 2-page navigation. the less page navigated, less chance for visitor to exit. u wanna direct them immediately to the landing page. server side is transparent.
     
    yolkie, Nov 8, 2007 IP