Solved

Please help me figure out a logout technique

Posted on 2004-08-12
2
152 Views
Last Modified: 2013-12-24
Hello,

I have a link in my navigation that says "Logout".  This navigation bar is included in my Application.cfm.

I want to the user to click the LOGOUT link in my navigation bar in order to get out of my application.

Please I am requesting if can someone give me a code and please mention where i have to put it, Application.cfm or other pages.  Im just in a tight schedule again.

Thanks for understanding.  By the way, i use the basic session method in Ben forta's book.  So, those CFlogout is a bit different from what i am doing.

Thanks
0
Comment
Question by:mdbbound
2 Comments
 
LVL 11

Accepted Solution

by:
hart earned 400 total points
ID: 11791300
ok thats simple....

just an advice don't put a lot of code in your application file as this file gets executed everytime...
keep it as simple as possible...

ok when the link is clicked.. call a file say LogOut.cfm
and in this file write this code

<!--- in the place of somevariable put a session variables name that u have formes after login --->
<CFIF IsDefined("Session.SomeVariable")>
    <cfset StructDelete(session,"SomeVariable")>
</CFIF>

Delete all the session variables and then redierect him to the login page

Regards
Hart
0
 
LVL 35

Assisted Solution

by:mrichmon
mrichmon earned 100 total points
ID: 11794687
Or struct delete / struct clear and then on that same page have a message that says "You are logged out. Click here to relogin"

rahter than auto- redirecting to login page.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Redirect website ! 4 54
How can I install php on a ngxin server on droplet 5 139
how to setup ssl access to internal local machine 4 117
Web Site Hosting 10 89
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

825 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