Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
16 / 16 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /* |
3 | * This file is part of App Project. |
4 | * |
5 | * For the full copyright and license information, please view the LICENSE |
6 | * file that was distributed with this source code. |
7 | */ |
8 | /** |
9 | * Session config. |
10 | * |
11 | * @see App::session() |
12 | * @see Framework\Session\Session::setOptions() |
13 | * @see Framework\Session\SaveHandlers\DatabaseHandler::prepareConfig() |
14 | * @see Framework\Session\SaveHandlers\FilesHandler::prepareConfig() |
15 | * @see Framework\Session\SaveHandlers\MemcachedHandler::prepareConfig() |
16 | * @see Framework\Session\SaveHandlers\RedisHandler::prepareConfig() |
17 | * @see https://docs.aplus-framework.com/guides/libraries/mvc/index.html#session-service |
18 | */ |
19 | |
20 | use Framework\Session\SaveHandlers\FilesHandler; |
21 | |
22 | return [ |
23 | 'default' => [ |
24 | 'options' => [], |
25 | 'save_handler' => [ |
26 | 'class' => FilesHandler::class, |
27 | 'config' => [ |
28 | 'prefix' => '', |
29 | 'directory' => STORAGE_DIR . 'sessions', |
30 | 'match_ip' => false, |
31 | 'match_ua' => false, |
32 | ], |
33 | ], |
34 | 'logger_instance' => 'default', |
35 | 'auto_start' => true, |
36 | ], |
37 | ]; |