cookies - typo3 - undo "setSessionCookie" -
i trying implement "stay logged in" functionality in typo3 (using extbase), when user checks checkbox named "rememberme", session cookie set:
//rememberme ? if($user->getrememberme() == 1){ $reflection = new \reflectionclass($globals['tsfe']->fe_user); $setsessioncookiemethod = $reflection->getmethod('setsessioncookie'); $setsessioncookiemethod->setaccessible(true); $setsessioncookiemethod->invoke($globals['tsfe']->fe_user); }else{ // ??? }
this works fine, problem - do when user no longer wants permanently logged in? if checkbox unchecked - how undo session cookie without logging out user? possible?
thanks!
i think normal behavior delete the permanently-logged-in-information @ moment user logs out. imho logical , behavior.
Comments
Post a Comment