Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
162cc52e
Commit
162cc52e
authored
Jan 20, 2023
by
Dominik Hebeler
Browse files
modified session duration
parent
1e58476e
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
metager/config/session.php
View file @
162cc52e
...
...
@@ -14,7 +14,7 @@ return [
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "array"
|
*/
*/
'driver'
=>
env
(
'SESSION_DRIVER'
,
'file'
),
...
...
@@ -27,11 +27,11 @@ return [
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
*/
'lifetime'
=>
12
0
,
'lifetime'
=>
6
0
,
'expire_on_close'
=>
fals
e
,
'expire_on_close'
=>
tru
e
,
/*
|--------------------------------------------------------------------------
...
...
@@ -42,7 +42,7 @@ return [
| should be encrypted before it is stored. All encryption will be run
| automatically by Laravel and you can use the Session like normal.
|
*/
*/
'encrypt'
=>
true
,
...
...
@@ -55,7 +55,7 @@ return [
| files may be stored. A default has been set for you but a different
| location may be specified. This is only needed for file sessions.
|
*/
*/
'files'
=>
storage_path
(
'framework/sessions'
),
...
...
@@ -68,10 +68,10 @@ return [
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
*/
'connection'
=>
env
(
'REDIS_SESSION_CONNECTION'
,
'cache'
),
/*
|--------------------------------------------------------------------------
| Session Database Table
...
...
@@ -81,7 +81,7 @@ return [
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
|
*/
*/
'table'
=>
'sessions'
,
...
...
@@ -94,7 +94,7 @@ return [
| cache store that should be used for these sessions. This value must
| correspond with one of the application's configured cache stores.
|
*/
*/
'store'
=>
null
,
...
...
@@ -107,7 +107,7 @@ return [
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
*/
'lottery'
=>
[
2
,
100
],
...
...
@@ -120,7 +120,7 @@ return [
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
*/
'cookie'
=>
'mg_session'
,
...
...
@@ -133,7 +133,7 @@ return [
| be regarded as available. Typically, this will be the root path of
| your application but you are free to change this when necessary.
|
*/
*/
'path'
=>
'/'
,
...
...
@@ -146,7 +146,7 @@ return [
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
|
*/
*/
'domain'
=>
env
(
'SESSION_DOMAIN'
,
null
),
...
...
@@ -159,7 +159,7 @@ return [
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you if it can not be done securely.
|
*/
*/
'secure'
=>
env
(
'SESSION_SECURE_COOKIE'
),
...
...
@@ -172,8 +172,8 @@ return [
| value of the cookie and the cookie will only be accessible through
| the HTTP protocol. You are free to modify this option if needed.
|
*/
*/
'http_only'
=>
true
,
];
];
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment