cflogin automatic log out when the client closes the browser

ColdFusion cflogin : How to create automatic log out when the client closes the browser.
LVL 1
mugsincAsked:
Who is Participating?
 
Phani Kiran ChikkalaCommented:
use cflogout in the relevant file and configure loginstorage="session" in the Application.cfc
0
 
DonConsolioCommented:
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
 
mugsincAuthor Commented:
i used loginstorage="session" on the application page but when i close the browser and open again it shows as still logged in.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
DonConsolioCommented:
did you clear all old cookies before testing?
0
 
mugsincAuthor Commented:
yes i clear all cookies but it working only for the login page when i go to another page it will automatically logout
0
 
DonConsolioCommented:
page cached in your browser?
0
 
mugsincAuthor Commented:
clear the browser cached  and tested its working only for single page
0
 
mugsincAuthor Commented:
it works after i clear the cache and cookies on the browser
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.