4 * Session configuration options.
6 * Changes to these config files are not supported by BookStack and may break upon updates.
7 * Configuration should be altered via the `.env` file or environment variables.
8 * Do not edit this file unless you're happy to maintain any changes yourself.
13 // Default session driver
14 // Options: file, cookie, database, redis, memcached, array
15 'driver' => env('SESSION_DRIVER', 'file'),
17 // Session lifetime, in minutes
18 'lifetime' => env('SESSION_LIFETIME', 120),
20 // Expire session on browser close
21 'expire_on_close' => false,
23 // Encrypt session data
26 // Location to store session files
27 'files' => storage_path('framework/sessions'),
29 // Session Database Connection
30 // When using the "database" or "redis" session drivers, you can specify a
31 // connection that should be used to manage these sessions. This should
32 // correspond to a connection in your database configuration options.
35 // Session database table, if database driver is in use
36 'table' => 'sessions',
38 // Session Sweeping Lottery
39 // Some session drivers must manually sweep their storage location to get
40 // rid of old sessions from storage. Here are the chances that it will
41 // happen on a given request. By default, the odds are 2 out of 100.
42 'lottery' => [2, 100],
45 // Session Cookie Name
46 // Here you may change the name of the cookie used to identify a session
47 // instance by ID. The name specified here will get used every time a
48 // new session cookie is created by the framework for every driver.
49 'cookie' => env('SESSION_COOKIE_NAME', 'bookstack_session'),
51 // Session Cookie Path
52 // The session cookie path determines the path for which the cookie will
53 // be regarded as available. Typically, this will be the root path of
54 // your application but you are free to change this when necessary.
57 // Session Cookie Domain
58 // Here you may change the domain of the cookie used to identify a session
59 // in your application. This will determine which domains the cookie is
60 // available to in your application. A sensible default has been set.
61 'domain' => env('SESSION_DOMAIN', null),
64 // By setting this option to true, session cookies will only be sent back
65 // to the server if the browser has a HTTPS connection. This will keep
66 // the cookie from being sent to you if it can not be done securely.
67 'secure' => env('SESSION_SECURE_COOKIE', false),
70 // Setting this value to true will prevent JavaScript from accessing the
71 // value of the cookie and the cookie will only be accessible through the HTTP protocol.
75 // This option determines how your cookies behave when cross-site requests
76 // take place, and can be used to mitigate CSRF attacks. By default, we
77 // do not enable this as other CSRF protection services are in place.
78 // Options: lax, strict