|
3 | 3 | use Illuminate\Support\Str; |
4 | 4 |
|
5 | 5 | return [ |
6 | | - |
7 | 6 | /* |
8 | 7 | |-------------------------------------------------------------------------- |
9 | 8 | | Default Session Driver |
|
17 | 16 | | "memcached", "redis", "dynamodb", "array" |
18 | 17 | | |
19 | 18 | */ |
20 | | - |
21 | 19 | 'driver' => env('SESSION_DRIVER', 'file'), |
22 | 20 |
|
23 | 21 | /* |
|
30 | 28 | | to immediately expire on the browser closing, set that option. |
31 | 29 | | |
32 | 30 | */ |
33 | | - |
34 | 31 | 'lifetime' => env('SESSION_LIFETIME', 120), |
35 | | - |
36 | 32 | 'expire_on_close' => false, |
37 | 33 |
|
38 | 34 | /* |
|
45 | 41 | | automatically by Laravel and you can use the Session like normal. |
46 | 42 | | |
47 | 43 | */ |
48 | | - |
49 | 44 | 'encrypt' => false, |
50 | 45 |
|
51 | 46 | /* |
|
58 | 53 | | location may be specified. This is only needed for file sessions. |
59 | 54 | | |
60 | 55 | */ |
61 | | - |
62 | 56 | 'files' => storage_path('sessions'), |
63 | 57 |
|
64 | 58 | /* |
|
71 | 65 | | correspond to a connection in your database configuration options. |
72 | 66 | | |
73 | 67 | */ |
74 | | - |
75 | 68 | 'connection' => env('SESSION_CONNECTION', null), |
76 | 69 |
|
77 | 70 | /* |
|
84 | 77 | | provided for you; however, you are free to change this as needed. |
85 | 78 | | |
86 | 79 | */ |
87 | | - |
88 | 80 | 'table' => 'sessions', |
89 | 81 |
|
90 | 82 | /* |
|
97 | 89 | | must match with one of the application's configured cache "stores". |
98 | 90 | | |
99 | 91 | */ |
100 | | - |
101 | 92 | 'store' => env('SESSION_STORE', null), |
102 | 93 |
|
103 | 94 | /* |
|
110 | 101 | | happen on a given request. By default, the odds are 2 out of 100. |
111 | 102 | | |
112 | 103 | */ |
113 | | - |
114 | 104 | 'lottery' => [2, 100], |
115 | 105 |
|
116 | 106 | /* |
|
123 | 113 | | new session cookie is created by the framework for every driver. |
124 | 114 | | |
125 | 115 | */ |
126 | | - |
127 | 116 | 'cookie' => env( |
128 | 117 | 'SESSION_COOKIE', |
129 | 118 | 'evo_session' |
|
139 | 128 | | your application but you are free to change this when necessary. |
140 | 129 | | |
141 | 130 | */ |
142 | | - |
143 | 131 | 'path' => '/', |
144 | 132 |
|
145 | 133 | /* |
|
152 | 140 | | available to in your application. A sensible default has been set. |
153 | 141 | | |
154 | 142 | */ |
155 | | - |
156 | 143 | 'domain' => env('SESSION_DOMAIN', null), |
157 | 144 |
|
158 | 145 | /* |
|
165 | 152 | | the cookie from being sent to you if it can not be done securely. |
166 | 153 | | |
167 | 154 | */ |
168 | | - |
169 | 155 | 'secure' => env('SESSION_SECURE_COOKIE', false), |
170 | 156 |
|
171 | 157 | /* |
|
178 | 164 | | the HTTP protocol. You are free to modify this option if needed. |
179 | 165 | | |
180 | 166 | */ |
181 | | - |
182 | 167 | 'http_only' => true, |
183 | 168 |
|
184 | 169 | /* |
|
193 | 178 | | Supported: "lax", "strict" |
194 | 179 | | |
195 | 180 | */ |
196 | | - |
197 | 181 | 'same_site' => null, |
198 | | - |
199 | 182 | ]; |
0 commit comments