PHP / jQuery Session Control

0

I'm creating a system where I have user groups with specific permissions. I need to do a session control at the time of login, storing the user's permissions on session variables so that they are available on all pages, to see what resources and / or pages the user is allowed to access. I already had contact with the PHP session variables, however, doing so would have to include a snippet of PHP code in the HTML pages. Is there a way to do this by leaving PHP totally separate from HTML? I've seen a plugin called jquerysession.js to handle this, has anyone used it and knows if it's a good choice? If so, would you have an example of use? Thank you in advance!

    
asked by anonymous 13.03.2018 / 12:27

0 answers