Making variables to application specific

So this is one question I have been thinking about lately. Is it possible to make variables so they can be altered only inside a specific application.

I have one menu application where you select an customer, here we give the customer id to the next menu application which opens to a tab.
Everything works great when you have only one customer open, but if you open two or more customers to their own tabs the global variables used inside applications start colliding because you have the same application open multiple times, only with different customer data.

So what would be the best approach in this situation? We are mostly using the global variables to show detailed customer information in applications and would like to restrict it so that an application open in another tab cannot change variable used some where else.

Has you global var as session?

All the global variables we are using are only marked as POST and GET in the Application -> Global variables menu, but still they are being changed from outside of the current application.
If I have undestanded correctly setting the variables as SESSION would make them available through out the project, that is why I am finding it odd that they are changing with our current settings.

I have to test this little more, but seems to be exactly what I needed. Thank you!