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