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.


I'm having a little difficulty understanding your current scenario. When it comes to setting a session variable based on a value in a record for a user this is a feature of Security Assist. In the authenticate user server behavior on the last step you can configure session variables based on the values for that users record. So if you store the UserGroup value in the user's record then you can have this value stored in a session variable on login. You get to name this session variable yourself so you can use the one from your example.
