Sam,
   Thanks for your response.  Here’s the code for the login.  The logoff is 
simply linking to a page that starts out with the <cflogoff> tag.  That’s it. 
 The login works fine.  The logoff does not.  In order to log off, I have to 
close the browser.  - Lewis

 <CFLOGIN <!--- idletimeout="#CreateTimeSpan(0,0,10,0)#" --->>
 
  <!--- *** If no form submission send the user to submit the login form. *** 
--->
 <cfif NOT (IsDefined("Form.username") AND IsDefined("Form.Password"))>
 <br>
 <br>
<cfinclude TEMPLATE="Grantee_Login2.cfm"> 
<cfabort>
 
  <!--- *** This Else statement decides whether the username and password are 
valid. *** --->
<CFELSE>
 
<!---  **** Find record with this UserName/password. ****
*** If no rows returned, password not valid **** --->

 <cfquery name = "GetUser" datasource="wdsc">
 SELECT UserID, FirstName, Rights 
 FROM MSFW_Passwords 
 WHERE UserName = '#FORM.UserName#' 
 AND Password = '#FORM.Password#' 
 </cfquery>
        <!--- (nested if statement)If the username and password are correct... 
--->
        <cfif GetUser.REcordCount EQ 1>
        <!--- Tell ColdFusion to consider the user "logged in"
        for the NAME attribute, we will provide the user's
        UserID number and first name, separated by commas
        Later, we can access the NAME value via GetAuthUser() --->
        <cfloginuser 
                name="#GetUser.UserID#, #GetUser.FirstName#" 
                password="#form.password#" 
                roles="#GetUser.Rights#">
                
<!--- <cflocation url="admin/GranteeDirAdmin.cfm"> 
<cfabort>
--->
        <cfelse>
        <br>
        <br>
        <br>
        <strong>Sorry, that user name and password are not recognized. Please 
try again.</strong> 
<cfinclude template="Grantee_Login2.cfm">
<cfabort>
</cfif>
 </cfif>
 </CFLOGIN>



> Can you provide the code?  For both logging in and logging out.
> 
> Also livedocs provide a good background for this tag:
> http://livedocs.macromedia.
> com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.
> htm?context=ColdFusion_Documentation&file=00000289.htm
> 
> Cheers,
> 
> Sam
> 
> On 7/24/06, Billingsley, Lewis - ETA CTR <[EMAIL PROTECTED]> 
> wrote:
> >
> >
> >
> >
> > Hi,
> >
> >    I'm sort of a low-end intermediate developer.
> >
> >    I'm having trouble getting the <cflogout> tag to work.  I read
> > somewhere that it was better to create an application.cfc file 
> rather
> > than an application.cfm file for the login framework, but with 
> either
> > one the logout tag does not work.  My book says it takes no 
> attributes.
> > Someone said something about setting a timeout somewhere, but I 
> didn't
> > get which timeout or where - or how.  It looks like the THIS scope 
> may
> > have a timeout I can set, but I can't figure it out.   I'm not even 
> sure
> > if the login framework actually uses the session scope somehow, 
> either
> > and how I would do that if it did.  As you can see, I'm in need of
> > enlightenment.
> >
> >
> >
> > Thank you.
> >
> > Lewis
> >
> Can you provide the code?  For both logging in and logging out.
> 
> Also livedocs provide a good background for this tag:
> http://livedocs.macromedia.
> com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.
> htm?context=ColdFusion_Documentation&file=00000289.htm
> 
> Cheers,
> 
> Sam
> 
> On 7/24/06, Billingsley, Lewis - ETA CTR <[EMAIL PROTECTED]> 
> wrote:
> >
> >
> >
> >
> > Hi,
> >
> >    I'm sort of a low-end intermediate developer.
> >
> >    I'm having trouble getting the <cflogout> tag to work.  I read
> > somewhere that it was better to create an application.cfc file 
> rather
> > than an application.cfm file for the login framework, but with 
> either
> > one the logout tag does not work.  My book says it takes no 
> attributes.
> > Someone said something about setting a timeout somewhere, but I 
> didn't
> > get which timeout or where - or how.  It looks like the THIS scope 
> may
> > have a timeout I can set, but I can't figure it out.   I'm not even 
> sure
> > if the login framework actually uses the session scope somehow, 
> either
> > and how I would do that if it did.  As you can see, I'm in need of
> > enlightenment.
> >
> >
> >
> > Thank you.
> >
> > Lewis
> >
> >
> >
> >
> >
> > 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:247602
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to