Automatically redirects to index...

Discussion in 'PHP' started by Greenmethod, Aug 31, 2007.

  1. #1
    For some reason, my page sometimes automatically redirects to index, it seems like its on pages that set cookies, and i'm sure that is the case but i'm not sure why it would only do it sometimes and not other times. Any ideas?
     
    Greenmethod, Aug 31, 2007 IP
  2. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Look for header("location:index.php")
    I am not sure why it would only do it sometimes.
    Maybe it is in an if statement that you trigger sometimes.
    Post your url so we can check.
     
    bobby9101, Aug 31, 2007 IP