Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

cflogin automatic log out when the client closes the browser

Posted on 2010-11-09
8
Medium Priority
?
503 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 250 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

604 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