PDA

View Full Version : Calling "Welcome Back" message from Remote Server... 80% done.. need help!


Noel 4 DMB
07-29-2002, 03:17 AM
Ok, on www.amidreaming.org I used PHP to include the welcome message at the top, and the online users. The only problem is now it won't recognize the cookie from www.ami-boards.com when its called up, and it goes straight to the unregistered welcome message. How can I correct this?

Logician
07-29-2002, 12:15 PM
You cant read a cookie of domain X in domain Y. This neither vb nor PHP related. This is cookie rule fixed in user side therefore you cant pass it.

And if you think about it it's wise and nesessary. Otherwise admins could be able to get passwords and personal data of their visitors in other web sites. For example would you like me to get your vb.org cookie (thus your username and MD5ed password) when you visit my personal site? ;)

Noel 4 DMB
07-29-2002, 12:53 PM
ok, so then is there an alternative method to recognize that the person is logged in? I'm logged in automatically on ami-boards.com, and i thought that running the php on that server and calling it from amidreaming.org would make it so people are logged in on the actual website. would there be a java script or something that would accomplish this rather than using the php include that im using now?

Logician
07-29-2002, 02:00 PM
I cant think of an very easy way but if you are determined to apply this (and you are good at PHP and vb login algorithm), you can try this method:

Change the default vb login behaviour in ami-boards.com and when someone logins in that board, open 2 windows (1 window with 2 frames might work too) and assign relevant cookie in amidreaming.org too by triggering a custom script in amidreaming.org.

For example: When I login to vbulletin.com, vbulletin.com assigns me its cookie. But if programmed, it can also trigger a script in a say popup window (or frame) in vbulletin.org and make sure vbulletin.org will assign me its cookie as well. So when I visit vbulletin.org, you can read my cookie since its assigned by vbulletin.org.

Hope this helps a bit..

Noel 4 DMB
07-29-2002, 02:22 PM
ah hah, im following the logic. Is there anywhere I can go to follow a tutorial on how this is done? If you could point me in the right direction i'd appreciate it. My AIM name is Noel4DMB