I'm not sure about what your criteria is for being logged in, but...
What about adding some small (1x1) clear GIFs on the companyname.com site? Each of
the clear GIFs is actually located on a different site (www.game1.com, www.game2.com,
etc.). The URLs for the clear GIFs are written dynamically so that they pass the
current urltoken to each of the gameN.com sites so that your user is logged in on
those sites too.
Something like this, for www.companyname.com/index.cfm?cfid=foo&cftoken=bar:
<html>
....
<body>
<img src="http://www.game1.com/sneakyImage.cfm?<cfoutput>#urltoken#</cfoutput>" alt=""
width="1" height="1">
<img src="http://www.game2.com/sneakyImage.cfm?<cfoutput>#urltoken#</cfoutput>" alt=""
width="1" height="1">
....
</body>
</html>
So, sneakyImage.cfm receives the urltoken and can do whatever you need to do to fool
that server into thinking the user is logged in there, too. When it's done with its
logic, it simply returns an image instead of HTML.
chris
-------------
At 10:00 AM -0500 1/24/01, Jim Priest wrote:
>I'm working on a game site and have the company 'home' page about done - now
>I'm running into an odd problem I'm not sure how to solve. The
>gamesite is currently www.companyname.com but they also have urls for
>quite a few of thier games - www.game1.com, www.game2.com.
>
>I've built a system where people can surf around but to reach certain
>areas they need to login (forums, tech support) and am now wondering
>how the user can login at www.companyname.com and then go to
>www.game1.com and still be 'logged in'...
>
>We're moving this site to a new server, and have talked about redoing
>some URL's maybe do: game1.companyname.com or
>www.companyname.com/game1/ so that is possible if it would make
>things easier...
>
>Anyone ever run into this before and if so what are my options? Is it
>possible to write a cookie that could keep the user 'logged in' across
>different urls? Currently I'm not using any cookies just passing
>around #urltoken#.
>
>Hope this is somewhat clear - haven't had my caffeine yet this
>morning. :)
>
>jim
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists