Solved

cflogin automatic log out when the client closes the browser

Posted on 2010-11-09
8
500 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
  • 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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 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