(Choose 1 answer)
A. Set the secure flag in the cookie
Which of the following is the best way to ensure that JavaScript cannot be used to access a cookie?
B. Set the HttpOnly flag in the cookie
C. Use the CAPTCHA system
D. Use non-persistent cookies
E. None of the other choices
Exit 2