Customizing parts for logged in users

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
parka
Forum Commoner
Posts: 52
Joined: Mon Feb 26, 2007 6:48 am

Customizing parts for logged in users

Post by parka »

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.
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: Customizing parts for logged in users

Post by yacahuma »

I dont see a problem saving some data on the session. Even more so, if the data does not change.
Post Reply