Hi
I am trying to logout of the application with a logout button but it does not work. The page consists of of 3 templates , one of which has a logout button.When the logout button is pressed, the page is just reloaded . Is there a way I can log out the user, kill the session and close the whole window?
the code for the logout button is
<input type="button" value="Log Out" size="26" class="lhsbutton" onclick="top.location.href='login.cfm?action=logout'">
and the code is the login.cfm is
<cfcase value="logout">
<!---
DeleteClientVariable("client.userid"
DeleteClientVariable("client.userkey"
DeleteClientVariable("client.password"
DeleteClientVariable("client.permission"
--->
<cfset client.userid = "">
<cfset client.userkey = "0">
<cfset client.password = "">
<cfset client.permission = application.accessreadonly>
<cflocation url="#application.baseurl##application.basepath#index.cfm" addtoken="no">
</cfcase>
In the application tag clientmanagement and sessionmanagement is enabled. But in the server administrator page the Default Client Variable Storage is cookies. I'm sorry I didn't write this original code so not everything is clear to me and I don't know if I'm missing any relevant details but can anyone help?
I am trying to logout of the application with a logout button but it does not work. The page consists of of 3 templates , one of which has a logout button.When the logout button is pressed, the page is just reloaded . Is there a way I can log out the user, kill the session and close the whole window?
the code for the logout button is
<input type="button" value="Log Out" size="26" class="lhsbutton" onclick="top.location.href='login.cfm?action=logout'">
and the code is the login.cfm is
<cfcase value="logout">
<!---
DeleteClientVariable("client.userid"

DeleteClientVariable("client.userkey"

DeleteClientVariable("client.password"

DeleteClientVariable("client.permission"

--->
<cfset client.userid = "">
<cfset client.userkey = "0">
<cfset client.password = "">
<cfset client.permission = application.accessreadonly>
<cflocation url="#application.baseurl##application.basepath#index.cfm" addtoken="no">
</cfcase>
In the application tag clientmanagement and sessionmanagement is enabled. But in the server administrator page the Default Client Variable Storage is cookies. I'm sorry I didn't write this original code so not everything is clear to me and I don't know if I'm missing any relevant details but can anyone help?