Create and get a cookie in WordPress
<p>What I am looking to achieve is that when a user comes to my site they immediately encounter a pop up (or a landing page) that asks, are you a man or a woman or other (choose x or y or z). They pick and click the link, then once they choose they go to that part of the site (and no it isn't a adult site ;). A cookie then remembers their choice and each time they return they are automatically redirected to their choice.</p>

<p>So basically we need the ability to set a cookie based on their choice (via link or form button) and then when they return to the homepage get that cookie and redirect.</p>

<p>I've seen some questions and answers that are close but just not quite there with this scenario and I end up confused.
What do you think? Doable? Please help and thanks so much.</p>