title: How to check logged user in liferay velocity?
body: <p>I have a requirement that I have to display sign in url in webcontent, if user not logged in and also need to display if user logged I have to display sign out hyper link. I have searched somewhere got $is_signed_in is for checking user logged in or not. After that I have added the below code to my requirement. Even though user is logged or not it is displaying "To know more please Sign In". Why condition failed? and how to check user logged in or not in liferay velocity? I have observed that I am not getting the values of $is_signed_in,$sign_in_url,$sign_out_url</p>
  
  <pre><code> #if(!$is_signed_in)   
  
        To know more please &lt;a href="$sign_in_url"&gt;Sign In&lt;/a&gt;
  
      #else
  
           click here to &lt;a href="$sign_out_url"&gt;Sign Out&lt;/a&gt;
     #end
  </code></pre>