kmaven
05-24-2008, 09:05 PM
I am trying to write some JS code that let users access a page only once and only once.
For example
User comes to a page and then click a link to a pop-up
Pop-up has some information, then users close it
If users tries to click the link to the pop-up again
A message comes up that say "Sorry you've already accessed this once"
I'm think I need to set a cookie on the users computer but I just can't get the code.
Thank you.
For example
User comes to a page and then click a link to a pop-up
Pop-up has some information, then users close it
If users tries to click the link to the pop-up again
A message comes up that say "Sorry you've already accessed this once"
I'm think I need to set a cookie on the users computer but I just can't get the code.
Thank you.