phpvms/config/session.php

33 lines
1.1 KiB
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "array"
|
*/
2018-08-27 00:40:04 +08:00
'driver' => env('SESSION_DRIVER', 'file'),
'lifetime' => 120,
2017-06-09 02:28:26 +08:00
'expire_on_close' => false,
2018-08-27 00:40:04 +08:00
'encrypt' => false,
'files' => storage_path('framework/sessions'),
'connection' => null,
'table' => 'sessions',
'store' => null,
'lottery' => [1, 100],
'cookie' => 'phpvms_session',
'path' => '/',
'domain' => env('SESSION_DOMAIN', null),
2020-05-16 06:20:16 +08:00
'secure' => env('SESSION_SECURE_COOKIE', null),
2018-08-27 00:40:04 +08:00
'http_only' => true,
2017-06-09 02:28:26 +08:00
];