PDA

View Full Version : Logged in?


tony09uk
04-26-2012, 07:38 AM
I am trying to only show some code when a user is logged in. However i can only seem to show the whole page if they are logged in or hide the whole page if they are not. The only way i can think of showing the required code if they are not logged in is an if() statement and show the whole page inside and then repeaat it in the else statement, omitting the unwanted parts.

But there has to be a better way?

edbr
04-26-2012, 08:34 AM
do you use redirect if logged in? just have different locations if logged in or not logged in

tony09uk
04-27-2012, 04:01 PM
Is that the normal way of doing things or are you aware that you are advising a complete idiot so offering the easiest option?:grin: