Logout not fully working right.
I have this login form that goes to the application.cfc to make sure the user is in the DB then allows the user to continue to the folder according to the users access privileges. The login works fine and all, but if you hit "logout" which goes to a <cflogout> file and logs the user out as you would except. Here's when the problem begins. When you go to the login screen again WITHOUT closing the browser i can enter anything in the login for and it will log me in. So now the cfc file won't recheck the login information given and allows me to go straight to the folder which i DO NOT want people to view unless the are allowed to.
I have tried to clear the session and the cookies in the browser. One thing i should add is that IF i fully close the browser it will do the login verification again if i launch the login form. I will admit that this is new to me, so any help would be great.
I hope i given everything needed to see my problem and that i have explained it enough.
--------- Login form ------------
<cfform action="http://localhost:8500/pet_website/logged/" method="post">
<table width="250">
<tr align="center">
<td colspan="2">
<cfif IsDefined('URL.LoginError')>
<cfoutput>Incorrect login; please try again</cfoutput>
<cfelse>
Please Log in.
</cfif>
</td>
</tr>
<tr>
<td>
<font size="-1">Email:</font>
</td>
<td>
<cfinput type="text"
class="textfield"
name="j_UserName"
required="yes"
message="- You must enter your User Name!">
</td>
</tr>
<tr>
<td>
<font size="-1">Password:</font>
</td>
<td>
<cfinput type="password"
class="textfield"
name="j_Password"
required="yes"
message="- You must enter a password!">
</td>
</tr>
<tr>
<td> </td>
<td>
<cfinput type="submit" name="login_btn" value="Log me in!" >
</td>
</tr>
</table>
</cfform>
----------- Application.cfc ----------------
<cfcomponent>
<cffunction name="onRequestStart">
<cflogin>
<cfif IsDefined("FORM.Login_btn")>
<cfquery name="qLogin" datasource="Users">
SELECT UserEmail, UserPassword, UserRoleID, UserID
FROM UsersAccess
WHERE UserEmail = <cfqueryparam value="#cflogin.Name#" cfsqltype="cf_sql_varchar">
AND UserPassword = <cfqueryparam value="#cflogin.Password#" cfsqltype="cf_sql_varchar">
</cfquery>
<cfif cflogin.name IS "#qLogin.UserEmail#" AND cflogin.password IS "#qLogin.UserPassword#">
<cfloginuser name="#cflogin.name#"
password="#cflogin.password#"
roles="#qLogin.UserRoleID#">
<cfelse>
<!--- Redirects if the login information is incorrect --->
<cflocation url="../index.cfm?LoginError" addtoken="no">
<cfabort />
</cfif>
<cfelse>
<cflocation url="../index.cfm" addtoken="no">
<cfabort />
</cfif>
</cflogin>
</cffunction>
</cfcomponent>
-------- Logout form ----------
<cflock timeout="10" scope="session" type="exclusive">
<cfset structclear(session)>
<cfcookie name="CFID" value="empty" expires="NOW">
<cfcookie name="CFTOKEN" value="empty" expires="NOW">
</cflock>
<cflogout>
<cflocation url="../index.cfm" addtoken="no">
