if you want this done on a single server, its not hard. I have it
setup in my company like this. Basicaly each application uses two
cfapplication tags, one with name MAIN first and second with the name
of the app. After the first one I do a check to see if the user is
"logged in" to MAIN, if not I redirect them to a central /login dir
which uses a cfapplication tag with name MAIN. After login they are
redirected back to the app. At this poit the test for being logged in
to MAIN passes and then the second cfapplication tag kicks in. Then I
test to see if the user has access to the local app. THat's it in a
nutshell. If all your apps on one server are CF based, this can work
fine and dandy. Here is an example...note each app has a login subdir
that does the auth stuffs. This would be the application.cfm from it.
<!--- begin editable area here --->
<cfset appurl = '/path/back/to/the/local/app/login/><!--- this MUST be
the URL to your app...absolute path is required --->
<cfset message = 'My app name'/><!--- optional: show message on
CENTRAL login page --->
<!--- end editable area here --->
<!--- do not edit this --->
<cfapplication name="main" sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,2,0,0)#">
<cfparam name="session.main.globalauthorized" default="0" />
<cfif session.main.globalauthorized NEQ 1>
<cflocation
url="/login?appurl=#URLEncodedFormat(appurl)#&message=#URLEncodedFormat(message)#"
addtoken="no" />
</cfif>
<!--- make local copy of session data to transfer to other local
session scope --->
<cfset variables.foo = duplicate(session.main) />
<!--- end do not edit this --->
<!--- local session data stuffs setup session here...note this session
supercedes the above--->
<!--- begin editable area here INSERT YOUR APPLICATION NAME HERE--->
<cfapplication name="foo" sessionmanagement="Yes"
clientmanagement="Yes" sessiontimeout="#CreateTimeSpan(0,0,20,0)#">
<!--- do not edit this --->
<cfset session.user = duplicate(variables.foo) />
<!--- end local session data stuff --->
<!--- end do not edit this --->
HTH
DK
On 9/28/05, Daniel Kessler <[EMAIL PROTECTED]> wrote:
> I only have a basic understanding of applications in CF.
>
> I have several applications in my site and each have their own
> logins, timeouts, and session variables. That brings up the obvious
> problem that someone wants to log in once and have that apply to any
> other login that they might come across. Currently applications have
> variables that are named the same but are in their own scopes.
> If I log in at the site level (the main page) which has it's own
> application.cfm and retrieve a list of applications that the user has
> access to, can the other applications read that there is a login at
> that level and then just see if they're in the application list?
>
> Am I making sense?
>
> --
> Daniel Kessler
>
> Department of Public and Community Health
> University of Maryland
> Suite 2387 Valley Drive
> College Park, MD 20742-2611
> 301-405-2545 Phone
> www.phi.umd.edu
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219591
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54