Just looking for some 'best practice advice', I'm currently using PHP / MySQL for a website for my University Final Year project.
On each page it will display the username and email address of the user and will display certain options depending on the rank of the user (also defined in MySQL database).
Should I be querying the MySQL database every time with 'SELECT' statements to fetch information about the user or is there a more efficient (yet still secure) method for this?
I have heard of session variables but not sure how secure this would be for storing user rank levels and whether it's a good idea to store 10+ things in the session variable or not.