|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello.
Here is the challenge. I want to examine all the sessions, to find if a SESSION.UserID variable does contain a certain value to know if a user is logged-in already or not. Is this possible ? Thanks in advance to you all. GubaGuba |
|
#2
|
|||
|
|||
|
As far as I know, the only way to do something like this is to call the underlying Java objects that manage sessions for CFMX. This would be a hack and would also be unsupported, with the possibility that a future version of CF would completely break it. With those caveats, you should be able to do something like this to get all active sessions for a specific application (as defined in the <cfapplication> tag):
<cfset st = createObject("java", "coldfusion.runtime.SessionTracker")> <cfset sessions = st.getSessionCollection(appname)> Again though, this is a total hack, so use at your own risk! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > For The Most Experts Of You |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|