RE: Deleting Session on Browser Close

2008-08-05 Thread Dave Watts
> Most of you are probably familiar with the approach below to 
> delete a session on the closing of the browser.  I have, 
> however, an environment where this is not working:
> 
> Browsers:  All IE 6+
> 
> O/S:  Linux (Websphere flavor I believe)
> 
> CF Ver:  MX 6.1  (I know, I know - not my decision. )
> 
> Has anyone experienced this before?  Here's the code I'm 
> using (FYI - this same code works for an app hosted on a Windows box):
> 
>  
>  
>  
>  
> 
>  

First, it's not strictly accurate to say that this will "delete" a session.
It simply disconnects the browser from the session.

Next, it looks like you have things a bit backward here. The code you've
posted will create session cookies if cookies already exist, and will
recreate those session cookies on every request, which isn't necessary.
Instead, you should only create the cookies once:








In addition, it's possible that your CF server is using J2EE session tokens
instead of CFID and CFTOKEN. This is set in the CF Administrator in the
section where you control the use of application and session variables.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310234
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Deleting Session on Browser Close

2008-08-05 Thread Dave Phillips
Hi all,

 

Most of you are probably familiar with the approach below to delete a
session on the closing of the browser.  I have, however, an environment
where this is not working:

 

Browsers:  All IE 6+

O/S:  Linux (Websphere flavor I believe)

CF Ver:  MX 6.1  (I know, I know - not my decision. )

 

Has anyone experienced this before?  Here's the code I'm using (FYI - this
same code works for an app hosted on a Windows box):

 
 
 
 
 
 

 

Sincerely,

 

Dave Phillips

 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310231
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4