Azadi wrote:
> easy way: use j2ee sessions (check corresponding box on
the CF Admin
> Memory Variables page).
>
> hard way:
> look here:
http://cfteeps.blogspot.com/2008/09/undocumented-goodness.html
>
> and here:
http://cfteeps.blogspot.com/2008/09/i-shot-session.html
>
> Azadi Saryev
> Sabai-dee.com
>
http://www.sabai-dee.com/
I feel it is important to note that these are not ways to
'kill a
session when a browser closes'.
By using j2ee sessions, or any other method that makes the
session id
cookies 'memory' cookies that are discarded when a browser is
closed,
will dissociate a session from a client making it very
unlikely that the
session will every be used again. But it does not 'kill' the
session.
That only happens when the session times out. Or the
ColdFusion
service|server is restarted.
I just glanced at the posted blogs, but they seem to be
describing
undocumented ways to work with ColdFusion session data and
includes a
way to kill a session from code external to that session. But
there is
no guaranteed way to have this happen when a user just closes
their
browser. The server is never told when that happens. The
concept of
the second post seems to be that a previous session could be
killed if a
known user returns at a later time, before their previous
session times out.