Avatar of mugsinc
mugsinc
Flag for Sri Lanka asked on

cflogin automatic log out when the client closes the browser

ColdFusion cflogin : How to create automatic log out when the client closes the browser.
ColdFusion Language

Avatar of undefined
Last Comment
mugsinc

8/22/2022 - Mon
DonConsolio

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.
ASKER CERTIFIED SOLUTION
Phani Kiran Chikkala

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
mugsinc

ASKER
i used loginstorage="session" on the application page but when i close the browser and open again it shows as still logged in.
DonConsolio

did you clear all old cookies before testing?
Your help has saved me hundreds of hours of internet surfing.
fblack61
mugsinc

ASKER
yes i clear all cookies but it working only for the login page when i go to another page it will automatically logout
DonConsolio

page cached in your browser?
mugsinc

ASKER
clear the browser cached  and tested its working only for single page
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
mugsinc

ASKER
it works after i clear the cache and cookies on the browser