web\Cookie $path

$path public property The path on the server in which the cookie will be available on. The default is '/'. public string $path = '/'

web\Cookie $name

$name public property Name of the cookie public string $name = null

web\Cookie $httpOnly

$httpOnly public property Whether the cookie should be accessible only through the HTTP protocol. By setting this property to true, the cookie will not be accessible by scripting languages, such as JavaScript, which can effectively help to reduce identity theft through XSS attacks. public boolean $httpOnly = true

web\Cookie $expire

$expire public property The timestamp at which the cookie expires. This is the server timestamp. Defaults to 0, meaning "until the browser is closed". public integer $expire = 0

web\Cookie $domain

$domain public property Domain of the cookie public string $domain = ''

web\Controller renderAjax()

renderAjax() public method Renders a view in response to an AJAX request. This method is similar to renderPartial() except that it will inject into the rendering result with JS/CSS scripts and files which are registered with the view. For this reason, you should use this method instead of renderPartial() to render a view to respond to an AJAX request. public string renderAjax ( $view, $params = [] )$view string The view name. Please refer to render() on how to specify a view name. $para

web\Controller refresh()

refresh() public method Refreshes the current page. This method is a shortcut to yii\web\Response::refresh(). You can use it in an action by returning the yii\web\Response directly: // stop executing this action and refresh the current page return $this->refresh(); public yii\web\Response refresh ( $anchor = '' )$anchor string The anchor that should be appended to the redirection URL. Defaults to empty. Make sure the anchor starts with '#' if you want to specify it. return yii\web\R

web\Controller redirect()

redirect() public method Redirects the browser to the specified URL. This method is a shortcut to yii\web\Response::redirect(). You can use it in an action by returning the yii\web\Response directly: // stop executing this action and redirect to login page return $this->redirect(['login']); public yii\web\Response redirect ( $url, $statusCode = 302 )$url string|array The URL to be redirected to. This can be in one of the following formats: a string representing a URL (e.g. "http://

web\Controller goHome()

goHome() public method Redirects the browser to the home page. You can use this method in an action by returning the yii\web\Response directly: // stop executing this action and redirect to home page return $this->goHome(); public yii\web\Response goHome ( )return yii\web\Response The current response object

web\Controller goBack()

goBack() public method Redirects the browser to the last visited page. You can use this method in an action by returning the yii\web\Response directly: // stop executing this action and redirect to last visited page return $this->goBack(); For this function to work you have to set the return URL in appropriate places before. See also yii\web\User::getReturnUrl(). public yii\web\Response goBack ( $defaultUrl = null )$defaultUrl string|array The default return URL in case it was not