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 Cache Store
39 // When using the "apc" or "memcached" session drivers, you may specify a
40 // cache store that should be used for these sessions. This value must
41 // correspond with one of the application's configured cache stores.
44 // Session Sweeping Lottery
45 // Some session drivers must manually sweep their storage location to get
46 // rid of old sessions from storage. Here are the chances that it will
47 // happen on a given request. By default, the odds are 2 out of 100.
48 'lottery' => [2, 100],
50 // Session Cookie Name
51 // Here you may change the name of the cookie used to identify a session
52 // instance by ID. The name specified here will get used every time a
53 // new session cookie is created by the framework for every driver.
54 'cookie' => env('SESSION_COOKIE_NAME', 'bookstack_session'),
56 // Session Cookie Path
57 // The session cookie path determines the path for which the cookie will
58 // be regarded as available. Typically, this will be the root path of
59 // your application but you are free to change this when necessary.
62 // Session Cookie Domain
63 // Here you may change the domain of the cookie used to identify a session
64 // in your application. This will determine which domains the cookie is
65 // available to in your application. A sensible default has been set.
66 'domain' => env('SESSION_DOMAIN', null),
69 // By setting this option to true, session cookies will only be sent back
70 // to the server if the browser has a HTTPS connection. This will keep
71 // the cookie from being sent to you if it can not be done securely.
72 'secure' => env('SESSION_SECURE_COOKIE', false),
75 // Setting this value to true will prevent JavaScript from accessing the
76 // value of the cookie and the cookie will only be accessible through the HTTP protocol.
80 // This option determines how your cookies behave when cross-site requests
81 // take place, and can be used to mitigate CSRF attacks. By default, we
82 // do not enable this as other CSRF protection services are in place.
83 // Options: lax, strict