Thanks for that. I didn’t think to dump the array. I’m just trying to keep track of two ‘states’ in the event that a browser is refusing cookies. The array corresponding to that third session is interesting:
So I guess my code is not asking the right questions here.
I actually use serialize() and unserialize() to store the arrays in proper honest-to-goodness cookies for browsers that accept them. I didn’t realise I could do that with $_SESSION.
NOTE: My apologies, that array of results is all wrong. In fact the session is being stored. I’m just not retrieving it in the code. Thanks again for the debugging advice.