ProcessLogin::setLoginURL()

Set URL to redirect to after login success

If not set, redirect will be back to the current page with a "login=1" GET variable. However, you should only check if the user is logged in with if($user->isLoggedin()).

Usage

$processLogin->setLoginURL(string $url);

Arguments

NameType(s)Description
$urlstring

Return value

$this

Object instance it was called from (method supports fluent interface).

Exceptions

Method can throw exceptions on error:

  • WireException - if given invalid URL


ProcessLogin methods and properties

API reference based on ProcessWire core version 3.0.251