Skip to content

Commit 1e1a129

Browse files
committed
[Cookbook][Session] fix default expiry field name
1 parent bde40f9 commit 1e1a129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/doctrine/mongodb_session_storage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ From the `MongoDB shell`_:
165165
.. code-block:: sql
166166
167167
use session_db
168-
db.session.ensureIndex( { "expireAt": 1 }, { expireAfterSeconds: 0 } )
168+
db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
169169
170170
.. _installed and configured a MongoDB server: http://docs.mongodb.org/manual/installation/
171171
.. _MongoDB shell: http://docs.mongodb.org/v2.2/tutorial/getting-started-with-the-mongo-shell/

0 commit comments

Comments
 (0)