AEM Session
How to handle a user specific session in AEM, Is it fine to use HTTP Session so that i can store some attributes of user using session.setattribute method. Or is there any other way to handle user specific sessions in AEM?
How to handle a user specific session in AEM, Is it fine to use HTTP Session so that i can store some attributes of user using session.setattribute method. Or is there any other way to handle user specific sessions in AEM?
Hi Murali,
As AEM is built on REST principles, the product does not maintain session state between requests. However, there is nothing stopping you using a session from CQSE/Jetty. Another option would be to store this in a cookie, but some clients don't approve of this approach.
If you have more than one instance that is running your code, then the session will not be replicated across the instances, so you would have to maintain a sticky connection.
The requirement for maintaining session data often comes from multi page forms, and an approach to this would be to create a single page app.
What is your use case?
Regards,
Opkar
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.