Question
onSessionEnd delete username from applicationlist
Hi everyone,
I need some help with the OnSessionEnd function within my Application.cfc, let me explain:
When users log in to the website their username gets stored in an application list 'users' (so I can show the users currently online on the website, for example.). When a user clicks the logout button I delete them from that list, everything working like it should be here. But when users just close their browser window they don't get logged out, so I have set a sessiontimout value and use an OnSessionEnd function.
Now my question is, how do I delete the user from the list within the OnSessionEnd function? How do I search for a user that is already gone -> can't search for #GetAuthUser()# since he is already gone).
I hope you understand what I'm trying to say :)
Anyway thanks in advance any help is much appreciated!
I need some help with the OnSessionEnd function within my Application.cfc, let me explain:
When users log in to the website their username gets stored in an application list 'users' (so I can show the users currently online on the website, for example.). When a user clicks the logout button I delete them from that list, everything working like it should be here. But when users just close their browser window they don't get logged out, so I have set a sessiontimout value and use an OnSessionEnd function.
Now my question is, how do I delete the user from the list within the OnSessionEnd function? How do I search for a user that is already gone -> can't search for #GetAuthUser()# since he is already gone).
I hope you understand what I'm trying to say :)
Anyway thanks in advance any help is much appreciated!
