how to logout a user with cookies and variables in coldfusion

Posted on 2007-10-05
Last Modified: 2013-12-24
I am using CFCODEs CFFORUM for a members forum within my site and i have changed the login to work for all pages within the members folder, but i cant seem to create a logout script or function to log the user out - There is a logout function with the forum but i cant figure out how is works and i was wondering if someone had a function or script i could add to my page that will allow the user to logout fully by removing all cookies and variables.

Question by:admoortown
    LVL 4

    Accepted Solution

    An all inclusive you could do:

    <cfset structClear(cookie)>
    <cfset structClear(session)>
    LVL 5

    Assisted Solution

    If you just want to delete a specific cookie you can try:
    <cfcookie name="#cookieName#" expires="NOW" value='NULL'>

    Author Comment

    Thanks Guys

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
    The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: : Click on Too…
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now