Skip to content

Commit

Permalink
bug #5589 [Cookbook][Session] fix default expiry field name (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Session] fix default expiry field name

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

As @stevenmusumeche noted in #5478 (comment), the [default expiry field name is expires_at](https://github.com/symfony/symfony/blob/2.8/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php#L86).

Commits
-------

1e1a129 [Cookbook][Session] fix default expiry field name
  • Loading branch information
wouterj committed Aug 20, 2015
2 parents a265de1 + 1e1a129 commit 1a53917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/doctrine/mongodb_session_storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ From the `MongoDB shell`_:
.. code-block:: sql
use session_db
db.session.ensureIndex( { "expireAt": 1 }, { expireAfterSeconds: 0 } )
db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
.. _installed and configured a MongoDB server: http://docs.mongodb.org/manual/installation/
.. _MongoDB shell: http://docs.mongodb.org/v2.2/tutorial/getting-started-with-the-mongo-shell/

0 comments on commit 1a53917

Please sign in to comment.