Emulation: If I wanna test cross domain session between 2 domains,



Im doing development on a Linux machine.
One request is to have cross domain sessions. As in: host1.com and
host2.com shares the same sessions so user do not have to login twice.

I need to emulate the enviroment. I have set up a test system:

My setup:

I have a network interface with an alias.
My main ip is 192.168.1.10. I created an alias of it as 192.168.1.100.

Under my /etc/hosts/

I've added 2 entries:

192.168.1.10 host1
192.168.1.100 host2

So in my browser, I keyed in http://host1 or http://host2; I would be
achieving an emulation of cross domain sessions?

Am I right? Or I was just being foolish. please advise

Thanks and Regards,
Steven.

.