Following the guidance contained in Dreamweaver, I have declared a cflogin tag in the application.cfc file. This declaration contains an idletimeout setting of 10 seconds (N.B. 10 seconds for development purposes only).
[CODE=cfm]
<cflogin idletimeout="10 ">
<cfif Not IsDefined("cflo gin")>
<cfinclude template="./loginform.cfm">
<cfelse>
{Authorisation functions}
</cfif>
</cflogin>
[/CODE]
I intended that the application return to the loginform when Coldfusion times out the users login session (after 10 seconds defined via idletimeout). This is not happenning and I would like to understand why.
If I request a page within the idletimeout period, the <cflogin> tag is ignored, as expected, and the GetAuthUser identity is defined as expected.
If I request a page after the idletimeout period, the <cflogin> tag is invoked, as expected, and the GetAuthUser identity is not defined, as expected. However, the cflogin.name and cflogin.pasword are still defined so the function simply logs me in again. Ideally, I would like the function to revert to the loginform.
I do not quite understand the cflogin structure, as I do not actually define it anywhere. I am using the cflogin structure as this is declared in the Dreamweaver guidance and it works!
Am I doing something wrong here and if so what should I do instead?
Regards
Blackmore
[CODE=cfm]
<cflogin idletimeout="10 ">
<cfif Not IsDefined("cflo gin")>
<cfinclude template="./loginform.cfm">
<cfelse>
{Authorisation functions}
</cfif>
</cflogin>
[/CODE]
I intended that the application return to the loginform when Coldfusion times out the users login session (after 10 seconds defined via idletimeout). This is not happenning and I would like to understand why.
If I request a page within the idletimeout period, the <cflogin> tag is ignored, as expected, and the GetAuthUser identity is defined as expected.
If I request a page after the idletimeout period, the <cflogin> tag is invoked, as expected, and the GetAuthUser identity is not defined, as expected. However, the cflogin.name and cflogin.pasword are still defined so the function simply logs me in again. Ideally, I would like the function to revert to the loginform.
I do not quite understand the cflogin structure, as I do not actually define it anywhere. I am using the cflogin structure as this is declared in the Dreamweaver guidance and it works!
Am I doing something wrong here and if so what should I do instead?
Regards
Blackmore
Comment