@@ -22,11 +22,11 @@ Overview
22
22
23
23
In this guide, you can learn how to set up HTTP sessions by
24
24
using {+odm-long+}. Sessions allow your application to store information
25
- about a user across multiple requests. Your application stores this
25
+ about a user across multiple server requests. Your application stores this
26
26
information in a specified location that it can access in future
27
- requests that the user makes. The {+odm-long+} session driver uses the
28
- ``MongoDbSessionHandler`` class from the Symfony framework to store the
29
- sessions .
27
+ requests that the user makes. The session driver in {+odm-long+} uses
28
+ the ``MongoDbSessionHandler`` class from the Symfony framework to store
29
+ session information .
30
30
31
31
To learn more about support for sessions, see `HTTP Session
32
32
<https://laravel.com/docs/{+laravel-docs-version+}/session>`__ in the
44
44
Next, you can select the session driver and connection in one of the
45
45
following ways:
46
46
47
- 1. In an ``.env`` file, by setting the following variables:
47
+ 1. In an ``.env`` file, by setting the following environment variables:
48
48
49
49
.. code-block:: ini
50
50
:caption: .env
@@ -73,7 +73,7 @@ the ``options`` array:
73
73
- ``data_field``: Field name for storing the session data (default: ``data``)
74
74
- ``time_field``: Field name for storing the timestamp (default: ``time``)
75
75
- ``expiry_field``: Field name for storing the expiry-timestamp (default: ``expires_at``)
76
- - ``ttl``: Time to live in seconds.
76
+ - ``ttl``: Time to live in seconds
77
77
78
78
We recommend that you create an index on the ``expiry_field`` field for
79
79
garbage collection. You can also automatically expire sessions in the
0 commit comments