Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
dd1b01c1
Commit
dd1b01c1
authored
5 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
sessions are now stored in redis-sentinel
parent
e48595c7
No related branches found
Branches containing commit
No related tags found
1 merge request
!1551
Development
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/session.php
+15
-15
15 additions, 15 deletions
config/session.php
with
15 additions
and
15 deletions
config/session.php
+
15
−
15
View file @
dd1b01c1
...
@@ -14,7 +14,7 @@ return [
...
@@ -14,7 +14,7 @@ return [
| Supported: "file", "cookie", "database", "apc",
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "array"
| "memcached", "redis", "array"
|
|
*/
*/
'driver'
=>
env
(
'SESSION_DRIVER'
,
'file'
),
'driver'
=>
env
(
'SESSION_DRIVER'
,
'file'
),
...
@@ -27,7 +27,7 @@ return [
...
@@ -27,7 +27,7 @@ return [
| to be allowed to remain idle before it expires. If you want them
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
| to immediately expire on the browser closing, set that option.
|
|
*/
*/
'lifetime'
=>
120
,
'lifetime'
=>
120
,
...
@@ -42,9 +42,9 @@ return [
...
@@ -42,9 +42,9 @@ return [
| should be encrypted before it is stored. All encryption will be run
| should be encrypted before it is stored. All encryption will be run
| automatically by Laravel and you can use the Session like normal.
| automatically by Laravel and you can use the Session like normal.
|
|
*/
*/
'encrypt'
=>
fals
e
,
'encrypt'
=>
tru
e
,
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -55,7 +55,7 @@ return [
...
@@ -55,7 +55,7 @@ return [
| files may be stored. A default has been set for you but a different
| 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.
| location may be specified. This is only needed for file sessions.
|
|
*/
*/
'files'
=>
storage_path
(
'framework/sessions'
),
'files'
=>
storage_path
(
'framework/sessions'
),
...
@@ -68,7 +68,7 @@ return [
...
@@ -68,7 +68,7 @@ return [
| connection that should be used to manage these sessions. This should
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
| correspond to a connection in your database configuration options.
|
|
*/
*/
'connection'
=>
null
,
'connection'
=>
null
,
...
@@ -81,7 +81,7 @@ return [
...
@@ -81,7 +81,7 @@ return [
| should use to manage the sessions. Of course, a sensible default is
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
| provided for you; however, you are free to change this as needed.
|
|
*/
*/
'table'
=>
'sessions'
,
'table'
=>
'sessions'
,
...
@@ -94,7 +94,7 @@ return [
...
@@ -94,7 +94,7 @@ return [
| cache store that should be used for these sessions. This value must
| cache store that should be used for these sessions. This value must
| correspond with one of the application's configured cache stores.
| correspond with one of the application's configured cache stores.
|
|
*/
*/
'store'
=>
null
,
'store'
=>
null
,
...
@@ -107,7 +107,7 @@ return [
...
@@ -107,7 +107,7 @@ return [
| rid of old sessions from storage. Here are the chances that it will
| 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.
| happen on a given request. By default, the odds are 2 out of 100.
|
|
*/
*/
'lottery'
=>
[
2
,
100
],
'lottery'
=>
[
2
,
100
],
...
@@ -120,9 +120,9 @@ return [
...
@@ -120,9 +120,9 @@ return [
| instance by ID. The name specified here will get used every time a
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
| new session cookie is created by the framework for every driver.
|
|
*/
*/
'cookie'
=>
'
laravel
_session'
,
'cookie'
=>
'
mg
_session'
,
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -133,7 +133,7 @@ return [
...
@@ -133,7 +133,7 @@ return [
| be regarded as available. Typically, this will be the root path of
| be regarded as available. Typically, this will be the root path of
| your application but you are free to change this when necessary.
| your application but you are free to change this when necessary.
|
|
*/
*/
'path'
=>
'/'
,
'path'
=>
'/'
,
...
@@ -146,7 +146,7 @@ return [
...
@@ -146,7 +146,7 @@ return [
| in your application. This will determine which domains the cookie is
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
| available to in your application. A sensible default has been set.
|
|
*/
*/
'domain'
=>
env
(
'SESSION_DOMAIN'
,
null
),
'domain'
=>
env
(
'SESSION_DOMAIN'
,
null
),
...
@@ -159,7 +159,7 @@ return [
...
@@ -159,7 +159,7 @@ return [
| to the server if the browser has a HTTPS connection. This will keep
| 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.
| the cookie from being sent to you if it can not be done securely.
|
|
*/
*/
'secure'
=>
env
(
'SESSION_SECURE_COOKIE'
,
false
),
'secure'
=>
env
(
'SESSION_SECURE_COOKIE'
,
false
),
...
@@ -172,7 +172,7 @@ return [
...
@@ -172,7 +172,7 @@ return [
| value of the cookie and the cookie will only be accessible through
| value of the cookie and the cookie will only be accessible through
| the HTTP protocol. You are free to modify this option if needed.
| the HTTP protocol. You are free to modify this option if needed.
|
|
*/
*/
'http_only'
=>
true
,
'http_only'
=>
true
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment