View Full Version : Redirecting a visitor after page reload

01-15-2012, 09:48 AM
People will visit my website and read the current webpage containing a terms of service. The page asks the visitors to reload their browser afterwards.

Upon reload, I want the page to redirect to a different one. This can be done through IP or cookies, but I'm not sure how.

So basically:
First visit --> Site A
Second visit (a page reload) --> redirected to Site B

Thanks :)

01-15-2012, 10:54 AM
There has been a couple of threads almost identical to this over past couple of months - I solved one of them and the other was solved almost identically.

Cookies are a pretty simple concept - they do what they say on the tin. You want to check for your cookie - if its there, the person has been on the site before. Otherwise, they haven't.

01-16-2012, 05:32 AM
Can you please direct me to those identical threads, then?

01-16-2012, 08:12 AM
http://www.codingforums.com/showthread.php?t=247725 - post #13

Just needs you to replace your own information and expiry.