I can tell that the session exists...I haven't been able to pull the
specific SessionID key that the username belongs to.
Remember the scenario is Person A logs in as Gel214th.
Person B comes along and also tries to login as Gel214th.
Person A is then 'logged out' and Person B is allowed to use the
account.
Think of a scenario where you sell 'Seats' on an application, and you
only want One person logging into each useraccount. You don't want a
company paying for a single 'seat' and giving out the username and
password to all their employees.
Now I can stop that.I use an undocumented call to the CFMX6.1 java
objects and bring back an array with all the Sessions on the server for
a particular application, and I search that array for a specific
username.
If I find it, it means the Username is already logged into the system
and I can block a second login.
But I do not want for Person A to login, their browser crashes...and
then no one in the company can use that Username until the session
expires on the CF Server.
It is this second situation that I am trying to solve. And it's valid
that the browser can crash, or the person might for some other reason
not LogOut from the system.
So Therefore, when a second login is attempted, the first session that
contains the username gel214th must be cleared.
I can't find a way to clear this 'orphaned' session.
-Gel
-----Original Message-----
From: Adam Haskell
If you can find the session why not just blank it out?
Adam
On Fri, 3 Sep 2004 18:21:49 -0400, Angel Stewart
<[EMAIL PROTECTED]> wrote:
> How does COldfusion handle sessions?
> See in this scenario I do not know what the CFID/CFTOKEN would be,
> because the second login can come from a totally different machine.
>
> So does CF require that in order to delete the session? I guess it
> would.
> If I set a CFID/CFTOKEN cookie manually on the second user's machine,
> and THEN do a StructClear(Session)...would that work?
>
> But then..how would I pull the CFID/CFTOKEN that is associated with
> username=gel214th key...ARRGGHH!
>
> -Gel
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
