Thank you. Since I needed to password protect a lot of pages built with different templates and I did not want having to duplicate code across a high number of pages, I ended up using JS cookies and it’s working for what I needed. Thanks anyway.
Right now, I am facing a different issue where users will not update in the users page and not being able to add users manually from the admin either. Please advice.
Thanks a lot,