I'm using this code when there's a new user. But i get an error which says session.UserID isn't declared properly. He doesn't know what to do with it.
<cfif NOT ISDEFINED ("session.user_id"
>
<cfapplication applicationtimeout="#CreateTimeSpan("0","1","0","0"
#" sessionmanagement="yes" sessiontimeout="#CreateTimeSpan("0","0","30","0"
#" name="UserID">
<cfset session.UserID = #form.id#>
<cfquery name="controleeruser" datasource="pvdata" dbtype="ODBC">
Select Count (Medewerker_id) AS aantal
From Medewerkers
Where Medewerker_id = #session.user_id#
AND Medewerkeremail = #form.email#
</cfquery>
<cfoutput>
<cfset ok = #aantal#>
</cfoutput>
<cfif ok EQ 1>
<cfset authorisatie = 1>
<cfelse>
<cfset authorisatie = 0>
</cfif>
Wouter
zure_zult@hotmail.com
To me, boxing is like a ballet, except there's no music, no choreography, and the dancers hit each other.
<cfif NOT ISDEFINED ("session.user_id"
<cfapplication applicationtimeout="#CreateTimeSpan("0","1","0","0"
<cfset session.UserID = #form.id#>
<cfquery name="controleeruser" datasource="pvdata" dbtype="ODBC">
Select Count (Medewerker_id) AS aantal
From Medewerkers
Where Medewerker_id = #session.user_id#
AND Medewerkeremail = #form.email#
</cfquery>
<cfoutput>
<cfset ok = #aantal#>
</cfoutput>
<cfif ok EQ 1>
<cfset authorisatie = 1>
<cfelse>
<cfset authorisatie = 0>
</cfif>
Wouter
zure_zult@hotmail.com
To me, boxing is like a ballet, except there's no music, no choreography, and the dancers hit each other.