As mentioned in the article we use different sessions for each interaction with crx. Now, in my project user logs in and home page is shown. Friom there user can navigate to different pages. But, in case of logout I am not able to end user session because I don't know how to hadle user session. As mentioned in post, my project has different java files which create jcr session and close it. I don't know how user session is maintained across the website.