We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Is user Logged in | Forum

Vik
Vik Aug 8 '16
How to check if user is logged in or logged out in general.html file?

if(user_logged()){

  echo "this";

} else {

  echo "that";

}

dave Leader
dave Aug 8 '16

      if(ow::getUser()->isAuthenticated() )

      {

         echo "logged in";        

        }


however we just do it it this way at the top of the file 


      if( !ow::getUser()->isAuthenticated() )      

      {

        return;

        }

The Forum post is edited by dave Aug 8 '16
Vik
Vik Aug 8 '16
Thanks again
ross Team
ross Aug 15 '16
Topic was moved from General Questions.