Skip to main content
Level 3
Jan 7, 2016 10:44 AM UTC
Solved

HttpSession maintenance in CQ5/AEM6.0

Hi ,

Could anyone please let me know how to maintain Http Sessions in CQ5/AM6.0 and above versions.

 

Thanks in advance.

 

Best Regards,

Vijaya Immadisetty

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jan 7, 2016 4:51 PM UTC

HTTP sessions are typically not used in AEM. JCR Sessions are used: 

Here is a good community article on JCR sessions: 

https://cqdump.wordpress.com/2013/03/18/jcr-sessions-and-cq5/

4 replies

Sham_HC
Level 10
Jan 7, 2016 1:40 PM UTC

you mean to say keep session active for inactivity period of time? Can make ajax interval for regular interval [A]. What is your use case?

 

[A]

 setInterval(function() {
        makeDummyAjaxRequest();
    }, 300000);

Translate
Feike_Visser1
Adobe Employee
Adobe Employee
Jan 7, 2016 3:41 PM UTC

Please note that usually we never use sessions with AEM.

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jan 7, 2016 4:51 PM UTC

HTTP sessions are typically not used in AEM. JCR Sessions are used: 

Here is a good community article on JCR sessions: 

https://cqdump.wordpress.com/2013/03/18/jcr-sessions-and-cq5/

Translate
kautuk_sahni
Level 9
Jan 11, 2016 8:40 AM UTC

Adding to what Scott has mentioned, please have a look a the a community article to help you with the same :- http://www.wemblog.com/2014/08/how-to-use-sessions-and-resource.html

~kautuk Sahni

Translate
Kautuk Sahni