<cflogout>
Logs the current user out.
Removes knowledge of the user ID, password, and roles from the server.
If you do not use this tag, the user is automatically logged out when the session ends.
This tag cannot have a body.
This tag is also supported within <cfscript>
<cflogout>
This tag does not use any attributes.
Examples
editSimple Example
<cflogin>
<cfloginuser
name = "foo"
password ="bar"
roles = "admin">
</cflogin>
<cfoutput>Authorized user: #getAuthUser()# <br></cfoutput>
<cflogout>
<!--- <cflogout applicationtoken="false"> --->
<cfoutput>Authorized user: #getAuthUser()#</cfoutput>
See also
- <cflogin>
- <cfloginuser>
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)