Cookie that redirects visitors using PHP?

paul.coman

New member
There are 3 pages: A, B and Thank You Page

Page A has some teaser content and a registration box. After the users register they get sent to a thank you page where they get the cookie. From the thank you page they get redirected to Page B that has some videos and other materials.

Question 1: How do I install a 60 day cookie on their browser?

Question 2: I need for users that visit A and have the cookie, to be redirected to B and for users that visit B and DON'T have the cookie, to be redirected to A. Can you help me with the code please?

Thank you!
 
Back
Top