Results 1 to 2 of 2

Thread: Detecting cookie disabled browsers

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    Wolverhampton, England
    Posts
    218

    Detecting cookie disabled browsers

    Would the code below suffice to detect whether a user/client computer has cookies disabled?? Does anyone have or know of "other" scripts that do this?

    ' set cookie value
    Response.Cookies("surname") = username

    'check if cookie is enabled
    if (Request.Cookies("surname")<>username) then
    response.write("You need to enable cookies.")
    response.end
    end if

    many Thx in advance

  2. #2
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375
    Hi, I have used code very similiar to that in the past and it works fine.

    Cheers
    MarkusJ

Posting Permissions

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



Click Here to Expand Forum to Full Width