I am having difficult time handling cookies on a wordpress theme I am developing.
The site needs to drop a cookie on visitor computer so we know that the visitor has opted-in. after then we have to check that cookie value to be 1990 (eg) and then show the membership contents.
I know we can do this by using wp login system too, but for some reasons we do not want to use it. I have to do it thru cookie system so the user doesn't have to login everytime they visit.
I tried adding cookie with path/domains and without it too, but both do not work properly. sometimes it writes the cookie and does not read. sometimes it reads the old cookie.
please please help.