my dog learned polymorphism*
The moose likes Servlets and the fly likes some simple questions about session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "some simple questions about session" Watch "some simple questions about session" New topic
Author

some simple questions about session

alsoumahi alBatal
Ranch Hand

Joined: Nov 22, 2009
Posts: 94
Hi guys , I am having two simple questions about session

the first is that the increase number of sessions is bad attitude to do so in application ? , does it lead later to crash the system .

second is that let's assume there is system using many session to make system work properly , my question here is the concurrent access to the system does lead to crash it
or does it lead to let one user use another session which is not his session

thanks a lot
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


the first is that the increase number of sessions is bad attitude to do so in application ? , does it lead later to crash the system

The increased number of any object in an application is potentially a bad thing - resources are finite after all. But then introducing more resources (though multiple Servlet containers) is relatively straight forward. And after all, if you worry about the number of instances of a particular object your application may use overly you'd probably never write anything.


second is that let's assume there is system using many session to make system work properly , my question here is the concurrent access to the system does lead to crash it
or does it lead to let one user use another session which is not his session

No - client's have access to their session only. That access needs to be threadsafe however.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: some simple questions about session