Customizing parts for logged in users
Posted: Fri Sep 26, 2008 9:25 am
Need some help with programming logic.
I've a webpage that can log people in.
After they logged in, certain parts of the webpages will be customized for them. E.g. Something similar to a forum like they are able to change their profile etc.
My webpage is created from includes. E.g. Header, body, sidebar, navigation, footer.
I need to customize the sidebar and footer. Should I put a check on sidebar.php and footer.php?
Or is it better to save their logged in status into sessions and access from there onwards? I'm trying to balance speed and database load.
I've a webpage that can log people in.
After they logged in, certain parts of the webpages will be customized for them. E.g. Something similar to a forum like they are able to change their profile etc.
My webpage is created from includes. E.g. Header, body, sidebar, navigation, footer.
I need to customize the sidebar and footer. Should I put a check on sidebar.php and footer.php?
Or is it better to save their logged in status into sessions and access from there onwards? I'm trying to balance speed and database load.