Hi, Ben and thanks for the reply.

Yes, each business will have its own domain.
All the files for the site will be in one folder and subfolders
"RentalCompanies".

I've been pulling the BusinessID from the bookmarked URL and
assigning that to Application.BusinessID and using that on each page
when needed to ID the Business.  (I finally started using <CFLOCK> today
and turned on "Full Checking" or whatever the setting is called on my
production box,
and went throught the site and eliminated all errors, so I guess the
Application and
Session variables aren't an issue any more.

Can you give me an example of code concerning how to determine which
business' info should be displayed based on domain for each page request?
Would there have to be queries on each page to pull the graphics each time
a page is requested?  I was trying to define a persistent variable
(Application.BusinessID)
that would be globally available to the site.  I need to query a second
database
based on the BusinessID key.

At this point, the site is just a concept and I don't have actual domains
yet.
How would I work it for the temporary addresses, which are all the same at
this point,
except for having the BusinessID attached to the URL...

One question is:  Why isn't the Application.cfm page being accessed whenever
I pull up a new bookmarked URL?  If that would happen, I might just have
this licked...

Thanks for your help.

Rick



-----Original Message-----
From: Ben Doom [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:53 PM
To: CF-Talk
Subject: RE: One dynamic site for multiple indepentdent businesses


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

Reply via email to