We are facing an issue where the following check fails intermittently in IE:
pseudocode:
setCookie('name','value', '1d'); if(getCookie('name') === 'value'){ return SUCCESS; } else { return FAILURE; }
this little routine checks if the user has cookies enabled. it shouldnt fail but it does. is it because IE can only handle a certain amount of cookies? (we set lots of cookies).
is there some other way to do a cookie check that is more reliable?
Yes, IE has a preset cookie limit per host. After that the program begins discarding cookies. Check here for more info…
I’d recommend you use use cookies only to track the userid, for everything else you should use something like ‘Session State’.