alib_15 Posted August 15, 2009 Share Posted August 15, 2009 Hi.Can someone tell me what I'm failing to see please.<code>document.write(navigator.cookieEnabled);</code>In IE7 Tools,Internet Options,Privacy Tab scroll bar Block all cookies, apply & ok.But I still get true returned from the line of code. What do I have to do to get false please?And is the cookie attribute max-age not supported in IE7?Ali Link to comment Share on other sites More sharing options...
Ingolme Posted August 16, 2009 Share Posted August 16, 2009 Hi.Can someone tell me what I'm failing to see please.<code>document.write(navigator.cookieEnabled);</code>In IE7 Tools,Internet Options,Privacy Tab scroll bar Block all cookies, apply & ok.But I still get true returned from the line of code. What do I have to do to get false please?And is the cookie attribute max-age not supported in IE7?AliTo run scripts, you must use the <script> tag. <code> tags just display code in a monospace font. Link to comment Share on other sites More sharing options...
alib_15 Posted August 16, 2009 Author Share Posted August 16, 2009 Ingolme .. I only used the <code> tag for the forum.A Link to comment Share on other sites More sharing options...
thescientist Posted August 16, 2009 Share Posted August 16, 2009 Ingolme .. I only used the <code> tag for the forum.Ause [code] instead then Link to comment Share on other sites More sharing options...
justsomeguy Posted August 17, 2009 Share Posted August 17, 2009 Try this instead: document.cookie="testcookie";cookieEnabled=(document.cookie.indexOf("testcookie")!=-1); IE does use max age. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.