title: typo3 - undo "setSessionCookie"
body: <p>I am trying to implement a "stay logged in" functionality in typo3 (using extbase), so when the user checks a checkbox named "rememberMe", the session cookie is set: </p>
  
  <pre><code>    //rememberMe ?
      if($user-&gt;getRememberMe() == 1){
          $reflection = new \ReflectionClass($GLOBALS['TSFE']-&gt;fe_user);
          $setSessionCookieMethod = $reflection-&gt;getMethod('setSessionCookie');
          $setSessionCookieMethod-&gt;setAccessible(TRUE);
          $setSessionCookieMethod-&gt;invoke($GLOBALS['TSFE']-&gt;fe_user);
      }else{
          // ??? 
      }
  </code></pre>
  
  <p>This works fine, but my problem is - what do I do when the user no longer wants to be permanently logged in? If the checkbox is unchecked - how do I undo the session cookie without logging out the user? Is this even possible? </p>
  
  <p>Thanks! </p>