So, I've been reading about RAP applications and I can't stop wondering how should I create static variables only for the current session (in case that are more than one person accessing the application at the same time). I have read about SingletonUtil. Yet, I have a few questions about it.
1- Should I create one SessionSingleton for the application? Or should I create one SessionSingleton for each class I have on my application (I know it sounds dumb and I probably should create just one SessionSingleton for the application, but... Just making sure).
2- Once I create this Singleton, each user (or session) will have access only to their static fields, correct? it's right to affirm that they won't get data from other static fields from different sessions? (Let's assume I am creating a shopping cart. It would be impossible to do so if custumers could see the shopping cart from another session).