-1

I want to develop a jsf web application like shopping cart and must have to login before shopping. How can i tracking each user session. What will be the best way in this situation. Track session in presentation layer (HttpSession) or Stateful Session Bean in server side.

thanks in advance

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
user3302257
  • 69
  • 3
  • 11

1 Answers1

0

Generally when using EJB Statefull session bean there is thought of to try having somekind of state management needed between same client calls and client is not http/https based. Ideally these should not be used client should manage its own state not service.

User sessions are better kept in war using http session management not in ear/ejbs.

Sandeep Vaid
  • 1,409
  • 11
  • 7