$id
$id : string
MockArraySessionStorage mocks the session for unit tests.
No PHP session is actually started since a session can be initialized and shutdown only once per PHP execution cycle.
When doing functional testing, you should use MockFileSessionStorage instead.
$id : string
$name : string
$started : bool
$closed : bool
$data : array
$metadataBag : \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag
$bags : array|\Symfony\Component\HttpFoundation\Session\SessionBagInterface[]
regenerate(bool $destroy = false, int $lifetime = null) : bool
Regenerates id that represents this storage.
bool | $destroy | Destroy session when regenerating? |
int | $lifetime | Sets the cookie lifetime for the session cookie. A null value will leave the system settings unchanged, 0 sets the cookie to expire with browser session. Time is in seconds, and is not a Unix timestamp. |