@@ 340-351 (lines=12) @@ | ||
337 | * ID. |
|
338 | * @param bool $remember |
|
339 | */ |
|
340 | public function setRememberUser( $remember ) { |
|
341 | if ( $this->remember !== (bool)$remember ) { |
|
342 | $this->remember = (bool)$remember; |
|
343 | $this->metaDirty = true; |
|
344 | $this->logger->debug( |
|
345 | 'SessionBackend "{session}" metadata dirty due to remember-user change', |
|
346 | [ |
|
347 | 'session' => $this->id, |
|
348 | ] ); |
|
349 | $this->autosave(); |
|
350 | } |
|
351 | } |
|
352 | ||
353 | /** |
|
354 | * Returns the request associated with a Session |
|
@@ 437-448 (lines=12) @@ | ||
434 | * Set whether HTTPS should be forced |
|
435 | * @param bool $force |
|
436 | */ |
|
437 | public function setForceHTTPS( $force ) { |
|
438 | if ( $this->forceHTTPS !== (bool)$force ) { |
|
439 | $this->forceHTTPS = (bool)$force; |
|
440 | $this->metaDirty = true; |
|
441 | $this->logger->debug( |
|
442 | 'SessionBackend "{session}" metadata dirty due to force-HTTPS change', |
|
443 | [ |
|
444 | 'session' => $this->id, |
|
445 | ] ); |
|
446 | $this->autosave(); |
|
447 | } |
|
448 | } |
|
449 | ||
450 | /** |
|
451 | * Fetch the "logged out" timestamp |