Left file: appwork-v1_2_0/laravel-starter/config/session.php  
Right file: appwork-v1_2_1/laravel-starter/config/session.php  
1 <?php = 1 <?php
2     2  
    -+ 3 use Illuminate\Support\Str;
      4  
3 return [ = 5 return [
4     6  
5     /*   7     /*
6     |--------------------------------------------------------------------------   8     |--------------------------------------------------------------------------
7     | Default Session Driver   9     | Default Session Driver
8     |--------------------------------------------------------------------------   10     |--------------------------------------------------------------------------
9     |   11     |
10     | This option controls the default session "driver" that will be used on   12     | This option controls the default session "driver" that will be used on
11     | requests. By default, we will use the lightweight native driver but   13     | requests. By default, we will use the lightweight native driver but
12     | you may specify any of the other wonderful drivers provided here.   14     | you may specify any of the other wonderful drivers provided here.
13     |   15     |
14     | Supported: "file", "cookie", "database", "apc",   16     | Supported: "file", "cookie", "database", "apc",
15     |            "memcached", "redis", "array"   17     |            "memcached", "redis", "array"
16     |   18     |
17     */   19     */
18     20  
19     'driver' => env('SESSION_DRIVER', 'file'),   21     'driver' => env('SESSION_DRIVER', 'file'),
20     22  
21     /*   23     /*
22     |--------------------------------------------------------------------------   24     |--------------------------------------------------------------------------
23     | Session Lifetime   25     | Session Lifetime
24     |--------------------------------------------------------------------------   26     |--------------------------------------------------------------------------
25     |   27     |
26     | Here you may specify the number of minutes that you wish the session   28     | Here you may specify the number of minutes that you wish the session
27     | to be allowed to remain idle before it expires. If you want them   29     | to be allowed to remain idle before it expires. If you want them
28     | to immediately expire on the browser closing, set that option.   30     | to immediately expire on the browser closing, set that option.
29     |   31     |
30     */   32     */
31     33  
32     'lifetime' => env('SESSION_LIFETIME', 120),   34     'lifetime' => env('SESSION_LIFETIME', 120),
33     35  
34     'expire_on_close' => false,   36     'expire_on_close' => false,
35     37  
36     /*   38     /*
37     |--------------------------------------------------------------------------   39     |--------------------------------------------------------------------------
38     | Session Encryption   40     | Session Encryption
39     |--------------------------------------------------------------------------   41     |--------------------------------------------------------------------------
40     |   42     |
41     | This option allows you to easily specify that all of your session data   43     | This option allows you to easily specify that all of your session data
42     | should be encrypted before it is stored. All encryption will be run   44     | should be encrypted before it is stored. All encryption will be run
43     | automatically by Laravel and you can use the Session like normal.   45     | automatically by Laravel and you can use the Session like normal.
44     |   46     |
45     */   47     */
46     48  
47     'encrypt' => false,   49     'encrypt' => false,
48     50  
49     /*   51     /*
50     |--------------------------------------------------------------------------   52     |--------------------------------------------------------------------------
51     | Session File Location   53     | Session File Location
52     |--------------------------------------------------------------------------   54     |--------------------------------------------------------------------------
53     |   55     |
54     | When using the native session driver, we need a location where session   56     | When using the native session driver, we need a location where session
55     | files may be stored. A default has been set for you but a different   57     | files may be stored. A default has been set for you but a different
56     | location may be specified. This is only needed for file sessions.   58     | location may be specified. This is only needed for file sessions.
57     |   59     |
58     */   60     */
59     61  
60     'files' => storage_path('framework/sessions'),   62     'files' => storage_path('framework/sessions'),
61     63  
62     /*   64     /*
63     |--------------------------------------------------------------------------   65     |--------------------------------------------------------------------------
64     | Session Database Connection   66     | Session Database Connection
65     |--------------------------------------------------------------------------   67     |--------------------------------------------------------------------------
66     |   68     |
67     | When using the "database" or "redis" session drivers, you may specify a   69     | When using the "database" or "redis" session drivers, you may specify a
68     | connection that should be used to manage these sessions. This should   70     | connection that should be used to manage these sessions. This should
69     | correspond to a connection in your database configuration options.   71     | correspond to a connection in your database configuration options.
70     |   72     |
71     */   73     */
72     74  
73     'connection' => null, <> 75     'connection' => env('SESSION_CONNECTION', null),
74   = 76  
75     /*   77     /*
76     |--------------------------------------------------------------------------   78     |--------------------------------------------------------------------------
77     | Session Database Table   79     | Session Database Table
78     |--------------------------------------------------------------------------   80     |--------------------------------------------------------------------------
79     |   81     |
80     | When using the "database" session driver, you may specify the table we   82     | When using the "database" session driver, you may specify the table we
81     | should use to manage the sessions. Of course, a sensible default is   83     | should use to manage the sessions. Of course, a sensible default is
82     | provided for you; however, you are free to change this as needed.   84     | provided for you; however, you are free to change this as needed.
83     |   85     |
84     */   86     */
85     87  
86     'table' => 'sessions',   88     'table' => 'sessions',
87     89  
88     /*   90     /*
89     |--------------------------------------------------------------------------   91     |--------------------------------------------------------------------------
90     | Session Cache Store   92     | Session Cache Store
91     |--------------------------------------------------------------------------   93     |--------------------------------------------------------------------------
92     |   94     |
93     | When using the "apc" or "memcached" session drivers, you may specify a   95     | When using the "apc" or "memcached" session drivers, you may specify a
94     | cache store that should be used for these sessions. This value must   96     | cache store that should be used for these sessions. This value must
95     | correspond with one of the application's configured cache stores.   97     | correspond with one of the application's configured cache stores.
96     |   98     |
97     */   99     */
98     100  
99     'store' => null, <> 101     'store' => env('SESSION_STORE', null),
100   = 102  
101     /*   103     /*
102     |--------------------------------------------------------------------------   104     |--------------------------------------------------------------------------
103     | Session Sweeping Lottery   105     | Session Sweeping Lottery
104     |--------------------------------------------------------------------------   106     |--------------------------------------------------------------------------
105     |   107     |
106     | Some session drivers must manually sweep their storage location to get   108     | Some session drivers must manually sweep their storage location to get
107     | rid of old sessions from storage. Here are the chances that it will   109     | rid of old sessions from storage. Here are the chances that it will
108     | happen on a given request. By default, the odds are 2 out of 100.   110     | happen on a given request. By default, the odds are 2 out of 100.
109     |   111     |
110     */   112     */
111     113  
112     'lottery' => [2, 100],   114     'lottery' => [2, 100],
113     115  
114     /*   116     /*
115     |--------------------------------------------------------------------------   117     |--------------------------------------------------------------------------
116     | Session Cookie Name   118     | Session Cookie Name
117     |--------------------------------------------------------------------------   119     |--------------------------------------------------------------------------
118     |   120     |
119     | Here you may change the name of the cookie used to identify a session   121     | Here you may change the name of the cookie used to identify a session
120     | instance by ID. The name specified here will get used every time a   122     | instance by ID. The name specified here will get used every time a
121     | new session cookie is created by the framework for every driver.   123     | new session cookie is created by the framework for every driver.
122     |   124     |
123     */   125     */
124     126  
125     'cookie' => env(   127     'cookie' => env(
126         'SESSION_COOKIE',   128         'SESSION_COOKIE',
127         str_slug(env('APP_NAME', 'laravel'), '_').'_session' <> 129         Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
128     ), = 130     ),
129     131  
130     /*   132     /*
131     |--------------------------------------------------------------------------   133     |--------------------------------------------------------------------------
132     | Session Cookie Path   134     | Session Cookie Path
133     |--------------------------------------------------------------------------   135     |--------------------------------------------------------------------------
134     |   136     |
135     | The session cookie path determines the path for which the cookie will   137     | The session cookie path determines the path for which the cookie will
136     | be regarded as available. Typically, this will be the root path of   138     | be regarded as available. Typically, this will be the root path of
137     | your application but you are free to change this when necessary.   139     | your application but you are free to change this when necessary.
138     |   140     |
139     */   141     */
140     142  
141     'path' => '/',   143     'path' => '/',
142     144  
143     /*   145     /*
144     |--------------------------------------------------------------------------   146     |--------------------------------------------------------------------------
145     | Session Cookie Domain   147     | Session Cookie Domain
146     |--------------------------------------------------------------------------   148     |--------------------------------------------------------------------------
147     |   149     |
148     | Here you may change the domain of the cookie used to identify a session   150     | Here you may change the domain of the cookie used to identify a session
149     | in your application. This will determine which domains the cookie is   151     | in your application. This will determine which domains the cookie is
150     | available to in your application. A sensible default has been set.   152     | available to in your application. A sensible default has been set.
151     |   153     |
152     */   154     */
153     155  
154     'domain' => env('SESSION_DOMAIN', null),   156     'domain' => env('SESSION_DOMAIN', null),
155     157  
156     /*   158     /*
157     |--------------------------------------------------------------------------   159     |--------------------------------------------------------------------------
158     | HTTPS Only Cookies   160     | HTTPS Only Cookies
159     |--------------------------------------------------------------------------   161     |--------------------------------------------------------------------------
160     |   162     |
161     | By setting this option to true, session cookies will only be sent back   163     | By setting this option to true, session cookies will only be sent back
162     | to the server if the browser has a HTTPS connection. This will keep   164     | to the server if the browser has a HTTPS connection. This will keep
163     | the cookie from being sent to you if it can not be done securely.   165     | the cookie from being sent to you if it can not be done securely.
164     |   166     |
165     */   167     */
166     168  
167     'secure' => env('SESSION_SECURE_COOKIE', false),   169     'secure' => env('SESSION_SECURE_COOKIE', false),
168     170  
169     /*   171     /*
170     |--------------------------------------------------------------------------   172     |--------------------------------------------------------------------------
171     | HTTP Access Only   173     | HTTP Access Only
172     |--------------------------------------------------------------------------   174     |--------------------------------------------------------------------------
173     |   175     |
174     | Setting this value to true will prevent JavaScript from accessing the   176     | Setting this value to true will prevent JavaScript from accessing the
175     | value of the cookie and the cookie will only be accessible through   177     | value of the cookie and the cookie will only be accessible through
176     | the HTTP protocol. You are free to modify this option if needed.   178     | the HTTP protocol. You are free to modify this option if needed.
177     |   179     |
178     */   180     */
179     181  
180     'http_only' => true,   182     'http_only' => true,
181     183  
182     /*   184     /*
183     |--------------------------------------------------------------------------   185     |--------------------------------------------------------------------------
184     | Same-Site Cookies   186     | Same-Site Cookies
185     |--------------------------------------------------------------------------   187     |--------------------------------------------------------------------------
186     |   188     |
187     | This option determines how your cookies behave when cross-site requests   189     | This option determines how your cookies behave when cross-site requests
188     | take place, and can be used to mitigate CSRF attacks. By default, we   190     | take place, and can be used to mitigate CSRF attacks. By default, we
189     | do not enable this as other CSRF protection services are in place.   191     | do not enable this as other CSRF protection services are in place.
190     |   192     |
191     | Supported: "lax", "strict"   193     | Supported: "lax", "strict"
192     |   194     |
193     */   195     */
194     196  
195     'same_site' => null,   197     'same_site' => null,
196     198  
197 ];   199 ];