Logging out users


show more Logging out users provides you with in-depth training on Developer. Taught by David Gassner as part of the ColdFusion 9 Essential Training show less
please wait ...

Logging out users

The last step to creating an authentication system for a ColdFusion application is to give the user a way of logging out. Typically you do this by creating a hyperlink that's available on all pages. In ColdFusion, you log out from the ColdFusion Authentication Architecture by calling a tag called cflogout. This is a very simple tag, which takes no attributes. To implement this, I'll create a brand new page in the Login folder of my application. I'll go to that folder in the Navigator view, right-click and choose New > ColdFusion Page.

I'll name the page logout.cfm. This is another back-end page that the user will never see. I'm going to delete all of the default code and replace it with the tag cflogout. After logging the user out, I'm then going to send them back to the Application homepage with this code, cflocation url="../home/index.cfm". So after logging them out, I'll send them back to the homepage, but because they aren't logged in, they&...

Logging out users
Video duration: 3m 3s 7h 21m Beginner

Viewers:

Logging out users provides you with in-depth training on Developer. Taught by David Gassner as part of the ColdFusion 9 Essential Training

Subjects:
Developer Web
Software:
ColdFusion
Author:
please wait ...