3 namespace Drupal\Core\Session;
5 use Symfony\Component\HttpFoundation\Request;
8 * Defines an interface for session configuration generators.
10 interface SessionConfigurationInterface {
13 * Determines whether a session identifier is on the request.
15 * This method detects whether a session was started during one of the
16 * previous requests from the same user agent. Session identifiers are
17 * normally passed along using cookies and hence a typical implementation
18 * checks whether the session cookie is on the request.
20 * @param \Symfony\Component\HttpFoundation\Request $request
24 * TRUE if there is a session identifier on the request.
26 public function hasSession(Request $request);
29 * Returns a list of options suitable for passing to the session storage.
31 * @see \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::__construct()
33 * @param \Symfony\Component\HttpFoundation\Request $request
37 * An associative array of session ini settings.
39 public function getOptions(Request $request);