View comments | RSS feed

cflogout

Description

Logs the current user out. Removes knowledge of the user ID and roles from the server. If you do not use this tag, the user is automatically logged out when the session ends.

Category

Extensibility tags

Syntax

<cflogout>

See also

cflogin, cfloginuser

History

New in ColdFusion MX: This tag is new.

Example

<cflogin>
  <cfloginuser 
    name  = "foo"
    password ="bar"
    roles = "admin">
</cflogin>
<cfoutput>Authorized user: #getAuthUser()#</cfoutput>
<cflogout>
<cfoutput>Authorized user: #getAuthUser()#</cfoutput>

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6

Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.

Comments


algorythm said on Jul 14, 2003 at 2:24 PM :
so, i get that cflogout destroys the ID and such, but it doesn't remove the session.variables ... I was expecting this to work similarly to the php session_destroy ...
algorythm said on Jul 14, 2003 at 2:24 PM :
so, i get that cflogout destroys the ID and such, but it doesn't remove the session.variables ... I was expecting this to work similarly to the php session_destroy ...

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt171.htm