Checks whether a named session (or the default session) has already been started.
string|null $name session name - if null then the default session will be checked:
bool whether the session has been started
\InvalidArgumentException If the named session is not registered
public function isSessionStarted(?string $name = null) { $session = $this->locateSession($name); return $session->isStarted(); }