Hi guys, I consulted to see what ideas they can give me, I mention my problem:
I have an application which has different user groups, which are logged with user and password, any normal application. According to the group to which the user belongs operate differently through the menus to be enabled. To control this type of global variables are used to store the “groupId” to which it belongs or that “IdSede” is specifically operating. So far so good. The problem is when a user has two ways to login, either by example as Administrator or User, a browser opens two windows and logs in two different users. Global variables control are pressed each other, taking values of the last assignment that the user performed in the window that is working, then he jumps to the other window, these variables contain incorrect values, since they were modified in another area.
My question is this:
- Is there any way that the variables are independent of how many windows and logins are made in the same browser? this would be ideal.
- Case wont Impossible 1, there is the possibility that in the same browser user can open only one instance of the program?
- I accept any idea and suggestion …
Greetings to all …