irischant:

Thanks for updating the code and posting your fix. You may have some more restrictive PHP settings regarding arrays than some as I have not had an issue here but your fixes make sense so I will include them in the next update. Again thank you!


Woody:

No, not by Zencart design but rather by PHP design since the session id is actually generated from within the PHP engine not within Zencart code.

The session is used in Zencart to track the user so yes in that case when he creates an account, has his cart merged etc., the session id is used as the reference.

The session id is neither IP based nor browser based. As I said it is generated by the PHP server to track a specific HTTP connection. If the same user logs out and back in without closing the browser he will likely get the same session id, unless the session has expired in which case he may get a different session id.

Different machines will get different sessions always but multiple connections on the same machine with the same browser will share the same session. Try opening several Firefox browser instances connecting to your store and several through I.E. and you will likely see two different sessions between browsers (unless you log in as the same customer in which case your sessions will be merged). If you play around like this while watching your user tracking session id's I think it will become clearer how it all works.


Hope this helps!
Jeff