There are a couple of things I'd do differently (based on what I gather from
your message).
First, I'd look at the way you're deciding which business to display.
Assuming you will use different domains for each business, I'd use those to
decide what to display.
Second, based on what you've said, it sounds like you're using something
like a session variable to store what site information you need. I'd
probably not do this, and generate the correct information based on domain
for each page request -- this eliminates the possibility of "bleed" between
visits to two different sites from the same machine.
Finally, I'd look at how you're caching in your browser, as that might be
why the wrong graphics etc. are showing up.
--Ben Doom
Programmer & General Lackey
Moonbow Software
: -----Original Message-----
: From: Rick Faircloth [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 02, 2002 3:48 PM
: To: CF-Talk
: Subject: One dynamic site for multiple indepentdent businesses
:
:
: Hi, all.
:
: I'm trying to build a single site that will serve as a dynamic
: site whose content and graphics are totally different depending on the
: BusinessID.
:
: I've got the database setup with the info needed, and I've been
: trying to specify the BusinessID by putting it in the URL that I've
: bookmarked on my production box.
:
: Example:
:
: http://localhost/cfdocs/rentalcompanies/index.cfm?BusinessID=1
:
: Once the Application.cfm is accessed, the presence of URL.BusinessID
: is checked, and if it's present, various site variables are setup for
: graphics,
: etc.
:
: It seems to work, sort of...
:
: When I first access a bookmarked URL, the Application.cfm is not accessed
: unless I refresh index.cfm. Then everything on the site is properly setup
: for the business according to the BusinessID in the URL. But if I don't
: manually
: refresh the page, when I click on the other pages in the site,
: the graphics
: from the
: previous version of the site are still there.
:
: I thought that the Application.cfm was always accessed by .cfm
: pages first.
: ??
: That's not happening when I pull a bookmarked URL on using localhost
: development.
: Will it be different when the site is accessed via the Internet?
:
: I'm planning to setup several businesses to use the same dynamic site.
: Is the approach I'm using appropriate? Is there a better way to establish
: the
: BusinessID? Will it work in a regular URL accessed via the Internet?
:
: Has anyone done something like this and have a solution?
:
: Rick
:
:
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm