3 namespace Drupal\Core\Session;
6 * Provides an interface for session handlers where writing can be disabled.
8 interface WriteSafeSessionHandlerInterface {
11 * Sets whether or not a session may be written to storage.
13 * It is not possible to enforce writing of the session data. This method is
14 * only capable of forcibly disabling that session data is written to storage.
17 * TRUE if the session the session is allowed to be written, FALSE
20 public function setSessionWritable($flag);
23 * Returns whether or not a session may be written to storage.
26 * TRUE if the session the session is allowed to be written, FALSE
29 public function isSessionWritable();