I am beginning to realize that this will be extremely valuable on my website as well.
This would be my first venture into the world of sessions, and I’ve read all the topics here on Wappler that I could find, but I seem to be missing some steps because I have not been able to make it work.
I tried adding the browser component to the page and then using the value of referral in the session, but I did not see any session set on the page when I loaded it.
From looking outside of the Wappler community, it looks like I need to use $_SERVER[‘REQUEST_URI’]; as the value of the current URL that the user is on. I tried setting that as the value in various ways and did not see any session set on the page when I loaded it.
For my situation, I have a header that I include on my pages using the SSI include. I think it would be best to set the session within the header so that it auto-updates without me adding the session manager on every page I create. However, I am not sure if that is the best option or not. From reading, it looks like I would need to set and remove the session on each page load so that the appropriate URL is set as the value and if the user is redirected to the login, the correct URL would be saved and used.