Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AbstractSession.php
Go to the documentation of this file.
1<?php
2
4
7
16abstract class AbstractSession {
17 protected ?string $name;
19
21 $this->verifyCsrf = ($verifyCsrf ??= new VerifyCsrfToken ( $this ));
22 }
23
24 abstract public function get(string $key, $default = null);
25
26 abstract public function set(string $key, $value);
27
28 abstract public function terminate(): void;
29
30 abstract public function start(string $name = null);
31
32 abstract public function isStarted(): bool;
33
34 abstract public function exists(string $key): bool;
35
36 abstract public function getAll(): array;
37
38 abstract public function delete(string $key);
39
40 abstract public function visitorCount(): int;
41
47 public function regenerateId(bool $deleteOldSession=false): bool {
48 return false;
49 }
50
52 return $this->verifyCsrf;
53 }
54}
55
Ubiquity\utils\http\session$AbstractSession This class is part of Ubiquity.
regenerateId(bool $deleteOldSession=false)
Re-generates the session id.
__construct(?VerifySessionCsrfInterface $verifyCsrf=null)
Ubiquity\utils\http\session\protection$VerifyCsrfToken This class is part of Ubiquity.
Ubiquity\utils\http\session\protection$VerifyCsrfInterface This class is part of Ubiquity.