Re: requests from 2nd window breaks my program

From: Date: Sat, 12 Aug 2006 16:23:10 +0000
Subject: Re: requests from 2nd window breaks my program
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240562@lists.php.net to get a copy of this message
I had a similar problem in my framework some while ago, but I fixed it to allow multiple sessions from the same client. Read about it in http://www.tonymarston.net/php-mysql/client-clones.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org <afan@afan.net> wrote in message news:42268.216.248.119.34.1155328372.squirrel@www.afan.net... > I'll try to explain my problem as better as I can. Please, be "gentle" :) > > I developed a program for our salespeople (only them, no public) where > they can order items for their customers. Order form is made of 6 pages > (order info, items info, artwork, ad copies,...). Also, they use the same > program to manipulate saved/submitted orders, send confirmation to > customers, requests to suppliers,... Code works fine. But this morning I > found a bug that if Salesperson open 2nd window in this program, since it > has the same session id, it would make a mess with session. I.e., on 1st > window I'm doing an order. Order ID, customer ID, transaction ID are > stored in session table. In the middle of the order I open 2nd window to > check a price on an other customer order. After I opened that order "new" > order ID and customer ID are stored now in session table and the order > (1st window) is now broken or goes to wrong place. > Or, I'm sending request for approval of an order to customer. But, second > before I submit the request, I open an order of other customer. Other > customer ID is now stored in session table and conf. email goes to wrong > place. > There are few more scenarios of "bug make mess". > > Did anybody had a problem with "2nd window" and how is it solved? What's > wrong with structure/idea I used to make a program? > Any comment will be helpful to determine or give me an idea how to fix > this bug. > > Thanks for any help. > > -afan

« previous php.general (#240562) next »