Solved

cflogin automatic log out when the client closes the browser

Posted on 2010-11-09
8
501 Views
Last Modified: 2013-04-04
ColdFusion cflogin : How to create automatic log out when the client closes the browser.
0
Comment
Question by:mugsinc
[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
  • 4
  • 3
8 Comments
 
LVL 15

Expert Comment

by:DonConsolio
ID: 34099723
Use a session cookie:

http://www.petefreitag.com/item/735.cfm

>If you use the cflogin tag to manage authentication you should consider
>setting loginstorage="session" in your Application.cfc or Application.cfm
>file for better security.
0
 

Accepted Solution

by:
Phani Kiran Chikkala earned 125 total points
ID: 34099812
use cflogout in the relevant file and configure loginstorage="session" in the Application.cfc
0
 
LVL 1

Author Comment

by:mugsinc
ID: 34109076
i used loginstorage="session" on the application page but when i close the browser and open again it shows as still logged in.
0
Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

 
LVL 15

Expert Comment

by:DonConsolio
ID: 34110202
did you clear all old cookies before testing?
0
 
LVL 1

Author Comment

by:mugsinc
ID: 34133442
yes i clear all cookies but it working only for the login page when i go to another page it will automatically logout
0
 
LVL 15

Expert Comment

by:DonConsolio
ID: 34134781
page cached in your browser?
0
 
LVL 1

Author Comment

by:mugsinc
ID: 34134871
clear the browser cached  and tested its working only for single page
0
 
LVL 1

Author Closing Comment

by:mugsinc
ID: 39046879
it works after i clear the cache and cookies on the browser
0

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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