Create a javascript that directs returning visitors back to my sales page

Closed - This job posting has been filled and work has been completed.

Job Description

I need someone to create a cookie for me so I can place it on certain pages of my site. Once a visitor opts in to my site and visits my sales page, they need to be redirected back to the sales page every time they visit my site, until they make a purchase or clear their cookies.