Ik werk met sessies maar als ik uitlog en weer inlog geeft hij lokaal een foutmelding:
als hij online staat (andere server dus niet lokaal) dan gaat het wel altijd goed? Is dit een bekende fout of doe ik iets verkeerd?
het inloggen gaat zo:
het uitloggen gaat zo:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| Error Diagnostic Information An error occurred while evaluating the expression: "http://#session.server#/blaat/CMS/doorsturen.cfm?#session.URLtoken#&inlognaam=#session.loginnaam#" Error near line 22, column 23. -------------------------------------------------------------------------------- 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: |
als hij online staat (andere server dus niet lokaal) dan gaat het wel altijd goed? Is dit een bekende fout of doe ik iets verkeerd?
het inloggen gaat zo:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| <cfquery datasource="blaat" name="GetUserRecord">
SELECT *
FROM gebruikers
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.gebruikers_id = #getuserrecord.gebruikers_id#>
</cflock>
<cfoutput>
<cflock scope="SESSION" timeout="1" type="READONLY">
<cflocation url="http://#session.server#/blaat/CMS/doorsturen.cfm?#session.URLtoken#&inlognaam=#session.loginnaam#" addtoken="YES">
</cflock>
</cfoutput> |
het uitloggen gaat zo:
code:
1
2
3
| <cflock scope="SESSION" TimeOut="1">
<cfset Structclear(session)>
</cflock> |
[ Voor 12% gewijzigd door Verwijderd op 14-12-2002 12:13 ]