In <004f01bfa4a0$fb577a40$3c2fa8ce@jim>, Jim McAtee 
([EMAIL PROTECTED]) in a fit of unbridled passion, wrote:
> Just wondering how (or if?) others are handling the situation where you
> want to let users open multiple instances of an application.  Are session
> variables completely out of the question for state management in this
> case?  As far as I can tell, once a session is established, that same
> session runs across all open windows of the browser.  A common scenario
> might be if a user opened two record editing windows in order to cut and
> paste data from one to the other.

You are correct -- one session for all open instances on the machine 
(unless they are open in different browser software)

> There would seem to be some potential pitfalls for developers who don't
> take into account the possibility of a user running multiple instances of
> an application.  For instance, keeping a "current record" id within a
> session variable as the user passed through several pages of an
> application.  Not something everyone might do, but very easy to imagine
> happening.

You must NEVER assume a stateful connection with HTTP!!!!!!  Never, 
ever, ever!  If you are performing a task that requires a stateful and 
sequential series of events, I might suggest looking at creating your 
own session variable management system.  

In the example of your current record ID, this is also something that I 
would keep persistent in the URL or as a hidden form field, not as a CF 
session variable.

(I never use CF's session variable functionality anyway because it's not 
scalable.  I use client variables and do the rest in my own database 
tables.)

> I don't remember seeing this discussed before, so am I missing something
> obvious?
> 
> Thanks,
> Jim
> 
> ------------------------------------------------------------------------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
> 

-- 

Reuben King <mailto:[EMAIL PROTECTED]>
Senior Web Consultant
Stonebridge Technologies <http://www.sbti.com/>
Phone: (512) 502-3332
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to