SessionCheck
class SessionCheck implements EnvironmentCheck (View source)
Check that a given URL does not generate a session.
Traits
Simple helper for env checks which require HTTP clients.
Properties
public | Client | $client | Client for making requests, set vi Injector. |
from Fetcher |
protected | string | $url | Absolute URL for requests. |
from Fetcher |
Methods
public
string|null
getCookie(ResponseInterface $response)
Get PHPSESSID or SECSESSID cookie set from the response if it exists.
Details
Fetcher
setURL(string $url)
Set URL for requests.
string
getURL()
Getter for URL
__construct(string $url = '')
Set up check with URL
array
check()
Check that the response for URL does not create a session
string|null
getCookie(ResponseInterface $response)
Get PHPSESSID or SECSESSID cookie set from the response if it exists.