summaryrefslogtreecommitdiff
path: root/core/classes/session/DefaultSession.php
blob: d3099a55543b988b421dce20fb6d077d2915852c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

/** DefauleSession
 * --
 * is a dummy session hanlder that wraps the
 * php's default session engine implementation;
 */
class DefaultSession implements SessionHandlerInterface {

    public function __construct()
    {
        // Start the session
        session_name(SESSION_NAME);
        session_start();
    }

    #[\ReturnTypeWillChange]
    public function open(string $path, string $name) {}

    #[ReturnTypeWillChange]
    public function close() {}

    #[ReturnTypeWillChange]
    public function read(string $id) {}

    #[ReturnTypeWillChange]
    public function write(string $id, string $data) {}

    #[ReturnTypeWillChange]
    public function destroy(string $id) {}

    #[ReturnTypeWillChange]
    public function gc(int $max_lifetime) {}

}