• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 619
  • Last Modified:

how to logout a user with cookies and variables in coldfusion

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.

Thanks
0
admoortown
Asked:
admoortown
2 Solutions
 
Russell2566Commented:
An all inclusive you could do:

<cfset structClear(cookie)>
<cfset structClear(session)>
0
 
trifecta2kCommented:
If you just want to delete a specific cookie you can try:
<cfcookie name="#cookieName#" expires="NOW" value='NULL'>
0
 
admoortownAuthor Commented:
Thanks Guys
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now