Copy link to clipboard
Copied
I was looking at the Active Sessions Report (The Chart View) and saw I have more "logged in users" than "active sessions".
I had expected them to be nearly the same. It's on our Intranet where I log users in (using cflogin and cfloginuser) at the begining of their session and users should be logged when the session ends.
I couldn't find a detailed explaination of what a "logged in user" means. There is a chance that the same user is logged into a nested application as well as the Intranet, but I don't think that is what I'm seeing.
I also don't see a way to get a list of what CF is counting as a logged in user. I can only see a way to get the total count.
Any help is appreciated.
Thanks,
Jeff
Copy link to clipboard
Copied
If a user opens a session, and closes his browser the session will still be alive for as long time as you set the timeout in your code or the maximum timeout set in the CF Administrator, so that's probably what's happening in your case.
Copy link to clipboard
Copied
Thank you Michael for the reply, but I don't think that is the issue.
When a user opens their browser on the intranet, a session begins and they are logged in (using the cflogin and cfloginuser). If they close their browser, the session should hang around for 20 min. (per the server setting). I am assuming this is still considered an "Active Session" since I can see this behavior in the report.
At first, the Active Sessions and Logged In Users are exactly the same. When the sessions start to time out, the active sessions are reduced, but the Logged In Users remain the same. Then, after a while, they start to move together. So I have more Logged In Users than Active Sessions.
I left the Server Monitor open last night and for most of the night, I had 0 sessions, but 57 "logged in users". This morning, as people opened their browsers, the Active Sessions and Logged In Users moved together. The gap of 57 looks consistent.
It looks like people are remaining logged in after their session ended.
I am really looking for a detailed explaination of "active session" and/or "logged in user" as used in the server monitor. It would be really nice to find a way to list the details about each item counted in the "logged in user" and not just the total count.
Thanks Again for your reply.
jsm
Copy link to clipboard
Copied
Turned out to be my application settings in the Application.cfc
I basically had mistakenly duplicated the settings like this:
<cfset THIS.setDomainCookies = "yes" />
<cfset THIS.SetClientCookies = "yes" />
<cfset THIS.setDomainCookies = "no" />
<cfset THIS.SetClientCookies = "no" />
I can replicate this on a test machine so I am confident that this is the issue. All I wanted was:
<cfset THIS.setDomainCookies = "no" />
<cfset THIS.SetClientCookies = "no" />
NOTE: I was also had NT authentication turned on on the webserver. This might be part of the issue...