Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Session;
4
 
5
use SessionHandlerInterface;
6
 
7
class NullSessionHandler implements SessionHandlerInterface
8
{
9
    /**
10
     * {@inheritdoc}
11
     *
12
     * @return bool
13
     */
14
    public function open($savePath, $sessionName): bool
15
    {
16
        return true;
17
    }
18
 
19
    /**
20
     * {@inheritdoc}
21
     *
22
     * @return bool
23
     */
24
    public function close(): bool
25
    {
26
        return true;
27
    }
28
 
29
    /**
30
     * {@inheritdoc}
31
     *
32
     * @return string
33
     */
34
    public function read($sessionId): string
35
    {
36
        return '';
37
    }
38
 
39
    /**
40
     * {@inheritdoc}
41
     *
42
     * @return bool
43
     */
44
    public function write($sessionId, $data): bool
45
    {
46
        return true;
47
    }
48
 
49
    /**
50
     * {@inheritdoc}
51
     *
52
     * @return bool
53
     */
54
    public function destroy($sessionId): bool
55
    {
56
        return true;
57
    }
58
 
59
    /**
60
     * {@inheritdoc}
61
     *
62
     * @return int
63
     */
64
    public function gc($lifetime): int
65
    {
66
        return 0;
67
    }
68
}