View comments | RSS feed
Contents > CFML Reference > ColdFusion Tags > cflogout PreviousNext

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.

Extensibility tags

<cflogout>

cflogin, cfloginuser, Securing Applications in Developing ColdFusion MX Applications

ColdFusion MX 6.1: Changed behavior: if the Session scope is enabled, a login remains in effect until the session expires or the user is logged out by the cflogin tag.

ColdFusion MX: Added this tag.

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

Contents > CFML Reference > ColdFusion Tags > cflogout PreviousNext

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

Version 6.1

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

Comments


andremoh said on Sep 26, 2003 at 2:19 AM :
"a login remains in effect until the session expires or the user is logged out by the cflogin tag."

Should that not be the cflogout tag?
jrunrandy said on Sep 26, 2003 at 5:37 AM :
You are correct. It should says cflogout.
dougarthur said on Dec 1, 2003 at 12:01 PM :
I set the session expiration, but when a user doesn't click the "logout" link I have established, he/she doesn't get logged out after the session expires. For some reason, it passes the username/pass again and doesn't even bring them to the login page. I used various debugging methods to test this out, and it's definately re-sending username/password instead of prompting....
mtangorre said on Dec 19, 2003 at 5:13 AM :
How would you log a user out when using CHAP on an NT box. For instance, CHAP gets their username and password and authenticates the user into the site creating the cflogin structure... I then pass cflogin.name and cflogin.password into a CFC that sets up the users roles etc..., but how do you log them out? cflogout on its own won't due it... unless im doing something wrong.
jrunrandy said on Dec 19, 2003 at 5:51 AM :
LiveDocs does not receive enough traffic to handle questions such as this. I suggest posting your issue to the online forums: http://webforums.macromedia.com/coldfusion/
No screen name said on Mar 4, 2004 at 8:44 AM :
I am trying to learn cold fusion and would like to talk to other developers about the language

 

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

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p75.htm