(02-09-2020, 04:34 PM)MrSpock Wrote:(02-09-2020, 03:34 PM)Joao Lira Wrote:In two different web browsers.(02-09-2020, 03:02 PM)MrSpock Wrote: ...
I opened two sessions in two different-browser tabs and I got the same variable values for user1 and user2!! My photography app does not work for more than one user at the same time. Perhaps the problem is related to TIWImage put on the form at design time, and this component uses shared value for both the users. When I draw on TIWImage.picture.bitmap.canvas, the same value is shown for the other user.
MrSpock,
Let me, please, understand better your test: have you opened two different web browsers (e.g., Chrome and Firefox), doing the test in both simultaneously, in which you realized that the variables had the same value, or did you open two tabs on the same web browser (e.g. Chrome or Firefox)?
Regards,
Joao Lira.
There seems to have been a variable allowing having two separated sessions per IP, but from version to version it all changes and then does not work.
If you haven't declared the object of the class that encapsulates the variables of your test in the 'var' section of the 'unit' where you tested the variables (visible to other threads), but instead inside the form class itself, they should not have the same value because they could be overwritten by some previous assignments unless you had done it in your code. And this is not related only to IW, but to Delphi OOP as a whole, as you know. Could you share here the full source code of the test you did?
Regards,
Joao Lira.


