Yes I'm using that undocumented java call thingy...
But...ehmm...wouldn't that set every session.username variable to Blank?


I mean that might be fine for UserA when UserB tries to login with the
same username. The session.username for the entire application will be
set to blank so that UserB can login with that username.
But what about the usernames that are single logins and valid...wouldn't
those be set to blank as well?


What happens when UserF encounters code looking for the value in
session.username ?


>From what I understand of the code, it is not selectively deleting the
session belonging to the username, or even the username itself...
but rather it is setting every single session.username key value to "" ?


-Gel

-----Original Message-----
From: Adam Haskell [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 7:39 PM
To: CF-Community
Subject: Re: Deleting a specific Session from the server.

Ok I am assuming you are using this underlying java (its what I am
using)
<cfscript>
tracker = createObject("java","coldfusion.runtime.SessionTracker");
sessions = tracker.getSessionCollection('AppName')
</cfscript>

<cfloop collection="#sessions#" item="cur_session">
<cfset sessions[cur_session].username= "">
</cfloop>

That will blank out the value which is how we do it.

Adam H
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to