Is !document.cookie reliable?
问题 I'm wondering if using the following Javascript code is reliable: if (!document.cookie) { alert('Cookies are disabled.'); } I've tested this in IE, Firefox and Chrome and it seems that when you disabled cookies, the document.cookie object becomes unavailable. Does anyone have any experience with this method working/not working? Many Thanks Stephen Additional I'm well aware that this method requires JavaScript to be enabled on the client. I'm also aware of other server-side/JavaScript