I am not sure why you are using session variables for what you have described. But even if it is the case that you need session variables, this is all doable in Wappler
As a sidenote, I had been working with single page apps mainly because it implied a simple template system where the index file contained the layout. In the meantime Wappler has made it easy for us to use NodeJS with an inbuilt template system. For more, see