Hi,
Requirement: A pop-up has to be shown only once when the user navigates to our page. I have written a javascript that sets a cookie (with expiry time 3 months from now) when the pop-up is shown. This javascript will be called whenever the user clicks on a link. If the cookie is set, the pop-up will not be shown. If not, the pop-up will pop-up :roll:
Problem: The cookie is not being recognized properly. Sometime, it is and at other times, it is not. This results in the pop-up opening randomly many number of times. My guess is the expiry time is not being set properly.
Any suggestions?