Results 1 to 2 of 2

Thread: Cookies!!!

  1. #1
    Join Date
    Dec 1969

    Default Cookies!!!

    I&#039;m really new to cookies, and the documentation that I&#039;ve found has been pretty confusing. I have a client that has a pop-up poll on their main page. They would like to have this only pop-up once. And then when a new poll is created, the cookie gets cleared so the user may see the new poll again.<BR><BR>Anyone got some code for me?????<BR><BR>Thanks!

  2. #2
    Joe Mac Guest

    Default RE: Cookies!!!

    Just post a cookie to the client at the appropriate time like this...<BR>Response.cookies("yourCookieNameHere") = "WhateverValueYouWant"<BR><BR>When you want to see if they already have a cookie, just check<BR>the Request like this <BR>If Request.Cookies("yourCookieNameHere") Then<BR> &#039;Do stuff...<BR>End If<BR><BR>Let me know if this makes sense.<BR>It really is not as hard as it might first appear.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts