Various questions based on simultaneous log-ons.
Correct me if I’m wrong. I believe it’s quite possible for two individuals at separate computers with separate IP addresses to use the same user name and password to log onto Servoy within the same time frame – concurrent use.
Because each used the same user name and password, these two computers are identified as having the same Servoy Security ID. I am assuming here the following code will return the same values for each user.
var vUsername = security.getUserName();
var vUserID = security.getUserId(vUsername);
However, there are two separate IP addresses at work here.
If one computer is using MacOSX and the other Windows am I correct in assuming a command such as the following will return correct information?
var vOSName = application.getOSName();
If Servoy responds correctly it must see these as two independent sessions (by IP addresses) rather than one (by Servoy Security ID).
Here the waters get murky. One user triggers a “start transaction”. Will this have any effect upon the other user (same Servoy Security ID, different IP address)? If both of them trigger a “start transaction”, will the database see these as the same transaction or separate? It may well depend on the database. Dunno, so I’m asking.
I’ve looked without success in Servoy for a “getIP” function. Is there a way of returning the IP of the user? I did stumble upon:
var vValue = application.getUserProperty('showOrders');
Returns “null” for me. The docs for this function are sparce, really just saying the function exists. No explanation what arguments this function supports, what values are returned or the utility of this function.
Would appreciate insights. I’m in learning mode here. Much appreciated.