Hi,
I made some changes to my Application file today, and have somehow managed
to affect the login procedure and client variables. Help.
I pass form.loginemail and form.pass to login.cfm which validates the user.
If successful, it *should* set the client variable Email, as below:
<cfset Client.email = '#form.loginemail#'>
And also <cfset Client.IsLoggedIn = 1> is set.
But my Application.cfm file is halting any pages loading - usually, the
client.email variable is read (if the user is logged in), as such, here's my
Application.cfm :
<CFIF DateDiff("n", Client.LastVisit, Now()) GTE 60>
<CFQUERY NAME="delClientVars" DATASOURCE="localads" MAXROWS=1
DBTYPE="ODBC">
DELETE FROM CData
WHERE CFID = '#Cookie.CFID#:#Cookie.CFTOKEN#'
</CFQUERY>
<cfset logged = False>
</CFIF>
<cfif NOT IsDefined('Client.IsLoggedIn')>
<cfset logged = False>
<!---
<p>You last visited on
<cfoutput>#createODBCDate(client.LastVisit)#</cfoutput> --->
<!-- User not logged in -->
<Cfelse>
<cfset logged = True>
<!-- User logged in as <cfoutput>#client.email#</cfoutput> --><p><p>
</cfif>
Can anyone point me in the right direction? I'm stumped.
Thanks
Will
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists