예제 #1
0
 /**
  * Remember user in session by login contexts
  */
 public function addSessionContexts()
 {
     $contexts = array_merge(array($this->loginContext), $this->addContexts);
     foreach ($contexts as $loginCtx) {
         $this->user->addSessionContext($loginCtx);
         $_SESSION['modx.' . $loginCtx . '.session.cookie.lifetime'] = $this->rememberme ? $this->lifetime : 0;
     }
 }