diff --git a/wire/core/PaginatedArray.php b/wire/core/PaginatedArray.php index c8746a87..e2249176 100644 --- a/wire/core/PaginatedArray.php +++ b/wire/core/PaginatedArray.php @@ -156,7 +156,7 @@ class PaginatedArray extends WireArray implements WirePaginatable { * * #pw-group-other * - * @return int + * @return bool * @since 3.0.120 * */ diff --git a/wire/core/Session.php b/wire/core/Session.php index 07cc42df..dad20890 100644 --- a/wire/core/Session.php +++ b/wire/core/Session.php @@ -235,6 +235,20 @@ class Session extends Wire implements \IteratorAggregate { return !empty($_COOKIE[$name]); } + /** + * Is a session login cookie present? + * + * This only indicates the user was likely logged in at some point, and may not indicate an active login. + * This method is more self describing version of `$session->hasCookie(true);` + * + * @return bool + * @since 3.0.175 + * + */ + public function hasLoginCookie() { + return $this->hasCookie(true); + } + /** * Start the session *