?
Solved

Please help me figure out a logout technique

Posted on 2004-08-12
2
Medium Priority
?
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
hart earned 1600 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 400 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

743 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