$this->backend->persist();
}
+ /**
+ * Make this session not be persisted across requests
+ */
+ public function unpersist() {
+ $this->backend->unpersist();
+ }
+
/**
* Indicate whether the user should be remembered independently of the
* session ID.
*
* @param string|string[] $salt Token salt
* @param string $key Token key
- * @return MediaWiki\\Session\\SessionToken
+ * @return Token
*/
public function getToken( $salt = '', $key = 'default' ) {
$new = false;
$new = true;
}
if ( is_array( $salt ) ) {
- $salt = join( '|', $salt );
+ $salt = implode( '|', $salt );
}
return new Token( $secret, (string)$salt, $new );
}