ik krijg op de inlogpagina deze melding:
en mijn code op die pagina is dus:
WAT DOE IK FOUT ?? ik geef de sessie variabele toch goed door met #session.URLtoken# ? (NB: de variabele PAGINA wordt meegegeven zodat de gerbuike naar de goede pagina wordt verstuurd, dit is dus in principe home.cfm (met vraagteken voor de sessievar.)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| An error occurred while evaluating the expression: "#pagina##session.URLtoken#" Error near line 39, column 38. -------------------------------------------------------------------------------- Error resolving parameter SESSION.URLTOKEN The session variable URLTOKEN does not exist. The cause of this error is very likely one of the following things: The name of the session variable has been misspelled. The session variable has not yet been created. The session variable has timed out. The error occurred while processing an element with a general identifier of (CFLOCATION), occupying document position (39:6) to (39:64) in the template file D:\InetPub\wwwroot\egpn\home\intranet_inlog.cfm. |
en mijn code op die pagina is dus:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| <CFPARAM NAME="pagina" DEFAULT="home.cfm">
<CFPARAM NAME="Flashmenu" DEFAULT="1">
<CFIF pagina CONTAINS "?">
<CFSET pagina = "#pagina#&">
<CFELSE>
<CFSET pagina = "#pagina#?">
</CFIF>
<cfquery datasource="egpn" name="GetUserRecord">
SELECT *
FROM egpnlogin
WHERE Inlognaam = '#FORM.inlognaam#' AND
Wachtwoord= '#FORM.wachtwoord#'
</cfquery>
<cflock scope="SESSION" timeout="1" type="EXCLUSIVE">
<cfset session.rechten = "true">
<cfset session.loginnaam = #getuserrecord.inlognaam#>
<cfset session.gebruiker = #getuserrecord.idnr#>
</cflock>
<cfoutput>
<cflock scope="SESSION" timeout="1" type="READONLY">
<CFLOCATION ADDTOKEN="No" URL="#pagina##session.URLtoken#">
</cflock>
</cfoutput> |
WAT DOE IK FOUT ?? ik geef de sessie variabele toch goed door met #session.URLtoken# ? (NB: de variabele PAGINA wordt meegegeven zodat de gerbuike naar de goede pagina wordt verstuurd, dit is dus in principe home.cfm (met vraagteken voor de sessievar.)