Detect if user is logged in with sightly
Hello,
I wanted to detect if an user is logged in or not using sightly. I know because of this link: https://docs.adobe.com/docs/en/aem/6-0/develop/sightly/global-objects.html
That I have access to the currentSession from sightly. Sadly I cannot find any documentation on how to use this object, I was reading the java documentation of javax.servlet.http.HttpSession but I have no idea how to use it within sightly. Does somebody have examples regarding this currentSession object or even better knows how to detect if the user is logged in or not using sightly only.
Thanks for reading and all the help you can provide