"What if the data changes in one session, and you are looking at false data in another session?"
exactly. I worked on such a system a couple of years ago. It was programmed by a java client/server programmer who obviously had no idea how the web worked. Opened up a new browser, work on customer #2 and all of a sudden it was showing customer #1 data. It *is* possible, having an array of customers in session scope, or similar, but the maintenance of tracking against each browser instance is a PITA. It just wasn't worth it. I can understand why the java programmer did it though - the customer data persisted across multiple screens (child screens, etc), but it wasn't my preferred way of doing it. no doubt some people smarter than me here have various hacks to make this work, but call me old fashioned: session scope is all about the end user when they're using that browser (authentication and access levels, personal details, etc), not customer records. my 2c. Sorry to be so forthright in saying this. I've had a bad day. On Thu, Dec 2, 2010 at 6:02 PM, Andrew Scott <[email protected]>wrote: > My question would be why would you want to do this in sessions? What if the > data changes in one session, and you are looking at false data in another > session? > > > > I think the work needed to keep the database and session upto date is more > work than just pulling the data/information from the database in the first > place. > > > > Regards, > > Andrew Scott > > http://www.andyscott.id.au/ > > > > > > > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Anthony Landers > *Sent:* Thursday, 2 December 2010 3:37 PM > *To:* [email protected] > *Subject:* [cfaussie] Session Variables with multiple sessions > > > > Hi, > > I have an inhouse billing application that I now support and are wanting to > make some modifications to. > > > > I am wanting end users to be able to open up multiple copies of our cf web > application in different IE windows. > > This is so they can be looking at a persons invoice in a session of > Internet Explorer and then receive a help desk call and proceed to look at a > different persons invoice in a second session of Internet Explorer. > > > > The application uses session variables to hold ID's etc so if the end user > then went back to their first Internet Explorer session it is possible that > if they clicked onto a button to show the persons details, they would get > the details from the 2nd Internet Explorer session (help desk call) as the > session variables would have changed. > > > > So, my question is, can you have separate session variables per Internet > Explorer window (not tab)? > > Is there a better way to manage having the application open multiple times > on the one PC? > > > > Hope this makes sense. > > > > Cheers > > Anthony > > > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<cfaussie%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
