I've built an login / admin area on our company intranet site and I'm having problems with the logout functionalitiy...basically I don't have a logout page and I'm not sure how to code it.
My Application.cfm file has the following code:
SessionTimeout="#createtimespan(0, 0, 30, 0)#"
My login page has various codes but it sets the session with:
<CFSET Session.Auth = 'Yes'>
<CFSET Session.Admin = "#Form.UserName#">
Each protected page has the following code as well and it works if I try to access each page directly without logging in:
<CFIF isDefined("Session.Auth") is NOT TRUE>
I have a logout page that sets the Session.Auth to No but that doesn't seem to do what I want. Any ideas where I'm going wrong? I'm sure this is a simple fix. Thanks.