summaryrefslogtreecommitdiff
path: root/core/classes/session/DefaultSession.php
blob: 079ab9df1bc41d85726a9ad7c10526d34061654c (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
36
37
38
39
40
41
42
<?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
        // (the default way)
        // and let the session* functions 
        // do what they know
        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) {}

}