I am using Sightly/HTL as the templating language in my AEM project (AEM version 6.3). As Sightly provides a lot of context objects, two of them being : request backed by org.apache.sling.api.SlingHttpServletRequest and currentSession backed by javax.servlet.http.HttpSession, I am trying to access some session parameter values in my sightly file by doing something like below:
${request.session.attribute @ mySessionAttribute}
or
${currentSession.attribute @ mySessionAttribute}
but am not able to get that value. Does anybody has any idea about how to do it?