SilverStripe\EnvironmentCheck\Checks\SessionCheck
Check that a given URL does not generate a session.
- Author: Adrian Humphreys
Synopsis
class SessionCheck
implements
EnvironmentCheck
{
- // methods
- public void __construct()
- public array check()
- public string|null getCookie()
Hierarchy
Uses
Implements
Constants
Name | Value |
---|---|
ERROR | 3 |
WARNING | 2 |
OK | 1 |
Members
protected
- $url
—
string
Absolute URL for requests.
public
- $client
—
SilverStripe\EnvironmentCheck\Traits\GuzzleHttp\Client
Client for making requests, set vi Injector.
Methods
public
- __construct() — Set up check with URL
- check() — Check that the response for URL does not create a session
- getCookie() — Get PHPSESSID or SECSESSID cookie set from the response if it exists.