Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

HttpSession maintenance in CQ5/AEM6.0

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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/

View solution in original post

4 Replies

Avatar

Level 10

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);

Avatar

Employee

Please note that usually we never use sessions with AEM.

Avatar

Correct answer by
Level 10

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/

Avatar

Administrator

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



Kautuk Sahni