XAMPP服务器会话无法正常工作

I have installed a XAMPP server on my MAC laptop.I am able to access my php files from an HTML request on my Laptop and $_SESSION is working if i use http://localhost.Things work as expected by persisting session information across php files. My other friend who is on my LAN network tried to connect to my XAMPP server php files using the same HTML files in his laptop.When ever he sends request $_SESSION[] is not working and am not getting data persisted across pages.HY other friend has enabled cookies on his browser too.He is using Safari too to connect.

Could you please tell what could be the issue?.

When you create a session you have to give it the domain in which it will work. If you create the session using localhost as domain or 127.0.0.1 when your friend connects from the other computer in your LAN it will simply not work. Try using your LAN IP address to create the cookie