Here is a session/browser question. If a user is s...
# cfml-general
g
Here is a session/browser question. If a user is simultaneously logged in to a CF application using two seperate browsers then my understanding is that each browser will have its own unique session ID. If the user logs out of one of the web browsers is there any way known that they can also be force logged out, and session expired, from the other browser? Thanks, and sorry if it's a bit of a newbie question.
z
lucee or acf?
g
A cf
z
you can access an api method which gives you all the sessions and then check for that user id and invalidate the other sessions for that userid
g
Is that api method already available for acf or do we need to create it?
z
g
Thanks heaps - I will check this out tomorrow
e
What's the equivalent of this in Lucee @zackster? Or at least knowing how many active sessions their are.
I assume the answer is db storage for sessions but I'm wondering how badly that effects binlog size on a busy app.
z
pc.getCFMLFactory().getScopeContext()
message has been deleted
e
oh nice... i didn't know that existed. I looked in the past and only ever saw the adobe way.
e
thanks!
z
so
createObject("java", "coldfusion.runtime.SessionTracker").getSessionCollection(applicationName)
works in lucee too
g
Thanks @zackster - getting there