> What are you trying to do between the "multiple apps"? If it's *one*
> intranet, wouldn't it be one app, in the above sense of sharing
> Application.cfm?

Yes, I guess. I'm kinda of new to all of this session stuff.

Say I have a directory for my login routine, "Directory A"
This where I query the database and gather the session vars.
If successful on login, I then show the user a navigation  icon screen
that has href links to the separate apps.

I store the separate "applications" in directories B, C, D and E
just to separate the logic and pages, with each directory serving
a different purpose. What I would like to do is "carry" the session
from the login directory "A" over to any of the apps the user happens
to click on. I would rather not pass params on the URL or FORM
if  have to.

If I'm reading you right, I may just need ONE application.cfm in the root
of my directory structure?

TIA,
Dave Fafard




----- Original Message -----
From: "Gyrus" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 6:57 PM
Subject: Re: Single Login - Multiple Apps


> ----- Original Message -----
> From: "David Fafard" <[EMAIL PROTECTED]>
> > I'm writing multiple apps for an intranet
> > and wondering if I can have a single login
> > page and have all my apps share the session
> > variables from the intial login.
> ---------------------------
>
> AFAIK, session variables are specific to an app - as defined by the
> CFAPPLICATION tag in your Application.cfm template. So you can only share
> session variables between templates that have the same Application.cfm
above
> them.
>
> Processing a template, CF checks in the same folder for an Application.cfm
> to process first of all. If there isn't one, it looks in the parent
> directory. If there's not one there, it keeps looking in the next
directory
> level up, up to the web root, to find an Application.cfm. So all templates
> in the same directory or lower than Application.cfm have that file
processed
> before them on every request.
>
> What are you trying to do between the "multiple apps"? If it's *one*
> intranet, wouldn't it be one app, in the above sense of sharing
> Application.cfm?
>
> - Gyrus
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> - [EMAIL PROTECTED]
> work: http://www.tengai.co.uk
> play: http://www.norlonto.net
> - PGP key available
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> 
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to