public function getField($field, $token = null)
    {
        $session = $this->app->tokens->get($token);
        return ($session && isset($session[$field]))? $session[$field] : null;
    }
public function getField($field, $token = null)
    {
        $session = $this->app->tokens->get($token);
        return ($session && isset($session[$field]))? $session[$field] : null;
    }
public function getField ( $ field , $ token = null ) { $ session = $ this -> app -> tokens -> get ( $ token ) ; return ( $ session && isset ( $ session [ $ field ] ) ) ? $ session [ $ field ] : null ; }
Gets a session field

@param string $field Field name
@param string $token Token hash
@return array|bool Session data or false
Gets a session field