title: Get currently logged in TYPO3 User (fe-user)
body: <p>I'm usually not someone who posts in a forum, since I was always able to find something without bothering anyone. Anyway, this time I had no luck.</p>
  
  <p>I have programmed a DB-Communications-System for my website, where you can leave messages for the rest of the family from a Java application, an Android app and the website itself. 
  On this website you login through a fe_user login mask and then you can access the form. Here I have a dropdown selection 'From' and a dropdown selection 'For' where there are the names of the family to choose. What I want is for the page to read the currently logged in user and automatically set the 'From' Variable according to this user.</p>
  
  <p>On many pages I have found  </p>
  
  <pre><code>$GLOBALS['TSFE']-&gt;fe_user-&gt;user 
  </code></pre>
  
  <p>and the accordig variations of it, but no matter how I tried to get something out of it, </p>
  
  <p><code>strleng()</code> is always 0,<br>
  <code>print_r($_GLOBALS['TSFE'])</code> is always empty<br>
  and the whole Array is also empty.<br>
  What am I doing wrong? Do I have to do something before I can access these variables?
  Also in some cases, it doesn´t recognize this object and instead of interpreting the variable, it just says</p>
  
  <pre><code>"-&gt;fe_user-&gt;user"
  </code></pre>
  
  <p>on the website.</p>
  
  <p>Thank you very much</p>