1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How would I go about dropping a cookie on button click?

Discussion in 'General Programming Chat' started by dirtbag, Nov 19, 2008.

  1. dirtbag

    dirtbag Senior Member

    Joined:
    Jul 24, 2008
    Messages:
    990
    Likes Received:
    525
    I'd like to drop a cookie on a button click to make th destination page only viewable to those who clicked them link, but I have no experience or understanding of how to drop cookies in the first place. Does anyone have a code snippet or can point me in the right direction as to where to start reading? What language wold this be done with, simple html, or a javascript? or what? thanks in advance.