Showing content for logged/unlogged users
Posted: Wed Aug 18, 2010 8:30 am
Hi,
This might have been discussed but I didn't find it. I have a site and some of its pages could be viewed both by logged and unregisterred users. When someone is logged additional content is shown. My question is how is the best way to implement such pages? Do I have to always check ( if(logged) show this else ... ) ? Lets assume that i keep user status in a session variable (logged - true/false).
This might have been discussed but I didn't find it. I have a site and some of its pages could be viewed both by logged and unregisterred users. When someone is logged additional content is shown. My question is how is the best way to implement such pages? Do I have to always check ( if(logged) show this else ... ) ? Lets assume that i keep user status in a session variable (logged - true/false).