Are session cookie(s) present?
Usage
// basic usage
$bool = $session->hasCookie();
// usage with all arguments
$bool = $session->hasCookie(bool $checkLogin = false);
Arguments
Name | Type(s) | Description |
---|---|---|
checkLogin (optional) | bool | Specify true to check instead for challenge cookie (which indicates login may be active). |
Return value
bool
Returns true if session cookie present, false if not.
$session methods and properties
API reference based on ProcessWire core version 3.0.236