Web Analytics Made Easy -
StatCounter Need help with Cookies! - CodingForum

Announcement

Collapse
No announcement yet.

Need help with Cookies!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need help with Cookies!

    Hello everyone,

    I am making a website with a chat on it.

    I am going to have it so when they click Chat, it pulls up the chat page, before the content is loaded the rules come up with a "I agree" checkbox at the bottom.

    When you click I agree and continue it would place a cookie so you would only have to accept once.

    Help would be appreciated.

    Thanks,
    patchkinz

  • #2
    "I agree" and similar things are not very suitable for Javascript as cookies can be erased by the user, or Javascript may not be enabled.

    Cookies have been covered many times in this forum, and you should make use of the Search feature. For example, very recently:-

    http://www.codingforum.net/showthread.php?t=163693


    “America is the only country that went from barbarism to decadence without civilization in between.” - Oscar Wilde (Irish Poet, Novelist, Dramatist and Critic, 1854-1900)

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

    Comment

    Working...
    X