What if you used client variables (turn them on in the cfapplication tag).

So you could set a session id after the user sucessfully logs in:

name.cfm?SID=W9907079W-O20496860V-U1172001132851E-M20922677130. This can be
done with createuuid() or you can make your own unique session id.

Then in the other sites (www.game1.com) check the that SID exists, plus use
the same application name and turn client variables in the cfapplication tag
as you did in the main site cfapplication tag.

<cfif len(trim(client.SID)) GT 0>

you are logged in

<cfelse>

login form code

</cfif>

Regards,

John Haigh

-----Original Message-----
From: Jim Priest [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 7:00 AM
To: Fusebox
Subject: keeping a user logged in across totally different URL's


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

Reply via email to