MAlex
MAlex

Reputation: 1264

Session Management in a real time application

I have read different articles on Session Management and am aware of the different ways of implementing the same.

However below are few questions that I wanted to understand:

Thanks!

Upvotes: 1

Views: 917

Answers (1)

Sanath
Sanath

Reputation: 4886

Its security risk to use cookies and url rewriting for sensitive data management. The best mechanism is to use http session in conjunction with https.

In real world scenarios, http session is used carefully to avoid bottle necks. simply rather than adding an entire object to session, an attribute which can be used to obtain an entity from database is carried over the session. bottom-line is that sessions need to be kept light weight. session best practices include removing the session and invalidating it once its use is completed.

in EJB context, its always better to avoid Stateful session beans. If used, the bean has to be invalidated as the last invocation of the bean.

Upvotes: 1

Related Questions