Expand|Select|Wrap|Line Numbers
- <cflogin idletimeout="10">
- <cfif Not IsDefined("cflogin")>
- <cfinclude template="./loginform.cfm">
- <cfelse>
- {Authorisation functions}
- </cfif>
- </cflogin>
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