If you use URL parameters then cookies (and thus the session key) will be shared. If you emulate multiple domains (like when I use the host file) then they will not share cookies (and session keys). Browsers bind cookies to a specific path (you can actually control this partially when setting them) and URL parameters will not be part of that path.