Using Cookies

Results 1 to 2 of 2

Thread: Using Cookies

  1. #1
    Join Date
    Dec 1969

    Default Using Cookies

    What happens if you request a cookie from someone who you haven't written a cookie to yet? Does the variable that you store the cookie in contain a blank string? I am writing a poll application and want to check if the client has already submitted a vote.

  2. #2
    Join Date
    Dec 1969

    Default Why didn't you try it???

    You would have gotten the answer faster than by waiting for an answer from here.<BR><BR>I don&#039;t remember whether you get a blank string or a NULL value. I *think* blank string.<BR><BR>But this works in either case:<BR><BR>If ("" & Request.Cookies("pollXYZ")) = "" Then<BR>&nbsp; &nbsp; ... user has *not* yet voted ...<BR><BR>

Posting Permissions

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