More robust temp storage detection for cookies/localStorage