Viewers: in countries Watching now:
ColdFusion 9 Essential Training is a detailed overview of ColdFusion, demonstrating each of the components and tools necessary to create dynamic web sites and web applications. Author and web developer David Gassner starts this course at the very beginning: how to set up a ColdFusion application server in both the Windows and Mac OS X operating systems. Using the new ColdFusion Builder, David explains the data types and code necessary to build and deploy dynamic web pages. Throughout the course, he shows how to build web pages and forms and populate these containers with dynamic data using ColdFusion ORM (Object Relational Mapping), a new feature of ColdFusion 9. Exercise files accompany this course.
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'll once again see the login form.
I'll save that change. I'm done with the page. I'll go to my Includes folder and open the header custom tag. In the navbar section, I'll add a new hyperlink. I'll place the cursor after the link to the Photos folder and put in a spacebar and a separator or a pipe character. Then on the next line, I'll create an anchor tag and I'll set the href attribute to point to ../login/logout.cfm.
That's the page I just created, which executes the cflogout tag and then sends the user to the homepage. Between the anchor tags, I'll display the text Log Out. I'll save the change to that file and now I'll test the entire system. I'll go back to the Navigator view and reopen my homepage, index.cfm, in the home directory. I'll run the page this time in an external browser. I'll log in, typing in the user name of joe and the password of smith.
After logging in, I now have access to the entire site for as long as I keep the browser open. But when I click the logout link, which is now displayed on every page, I'm returned back to the login form where I can type in my user name and password again, or simply close the browser. So those were the three tags that we use to create the authentication architecture: cflogin to execute code for non- authenticated users, cfloginuser to actually log the user in and register them with the ColdFusion security system, and cflogout to disrupt the connection between their browser and the server, and force them to login again the next time they visit the site.
Find answers to the most frequently asked questions about ColdFusion 9 Essential Training .
Here are the FAQs that matched your search "" :
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.