Partially dynamic menus as a site-wide template
As part of a subscription service, several different classes of visitors need navigation to various groups of pages with exclusion of blocked access rights. There are about 5 classes of visitors, each having a static set of appropriate links. We are using PHP/MySQL server technologies.
Can varied menus be substituted based upon a session variable, such as $_SESSION['UserGroup'], and applied to many pages in a shared manner? Actions (such as logging in) during sessions can change the 'UserGroup' value. A default of "Unknown" for a session UserGroup is set, and changes are applied through an authentication process.