Though I would show you how I was doing it.
<CFCASE VALUE="login">
<CFSET attributes.page_title = "Country Music Groups Forum">
<CFIF isDefined("form.username")>
<CFIF (FORM.USERNAME) IS NOT "">
<CFINCLUDE TEMPLATE="_qry/qry_get_login_info.cfm">
<CFLOCK NAME="#session.sessionID#" TIMEOUT="10">
<!---Check to see if the session var exists, and if it does check it against
current sessions and do not allow another log-in//--->
<CFIF isDefined("session.loggedInId")>
<CFIF (session.loggedInID) EQ check_user.user_id>
You are already logged in
<CFELSE>
<CFIF (check_user.recordCount) GT 0>
<CFSET session.loggedIn = "true">
<CFSET session.loggedInUser = check_user.username>
<CFSET session.loggedInId = check_user.user_id>
</CFLOCK>
<CF_RETURNFUSEACTION ACTION="return">
</CFIF>
</CFIF>
</CFIF>
</CFIF>
</CFIF>
<CFINCLUDE TEMPLATE="_qry/qry_site_colors.cfm">
<CFINCLUDE TEMPLATE="_dsp/dsp_header.cfm">
<CFINCLUDE TEMPLATE="_dsp/dsp_login.cfm">
<CFINCLUDE TEMPLATE="_dsp/dsp_footer.cfm">
</CFCASE>
"Success is a journey, not a destination!!"
Doug Brown
----- Original Message -----
From: "Critz" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, April 08, 2002 12:05 PM
Subject: Users logged in only once
> oi CF-Talk,!!
>
> what would be the best way to ensure that a user can only be logged in once
to
> an application?
>
> I was thinking an application variable that kept a list of users with
their
> login times, but what would be the best way to drop the users from the
list?
>
> I'm open to suggestions.
>
> cheers
>
> --
> Critz
> Certified Adv. ColdFusion Developer
>
> Crit[s2k] - <CF_ChannelOP Network="Efnet" Channel="ColdFusion">
>
>
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.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