Skip to content

Commit

Permalink
Remember me, Renamed key to secret
Browse files Browse the repository at this point in the history
  • Loading branch information
SongoQ committed Oct 6, 2015
1 parent 6468cd5 commit 18c7f04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cookbook/security/remember_me.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
default:
# ...
remember_me:
key: "%secret%"
secret: "%secret%"
lifetime: 604800 # 1 week in seconds
path: /
# by default, the feature is enabled by checking a
Expand All @@ -48,7 +48,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
<!-- 604800 is 1 week in seconds -->
<remember-me
key="%secret%"
secret="%secret%"
lifetime="604800"
path="/" />
<!-- by default, the feature is enabled by checking a checkbox
Expand All @@ -68,7 +68,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
'default' => array(
// ...
'remember_me' => array(
'key' => '%secret%',
'secret' => '%secret%',
'lifetime' => 604800, // 1 week in seconds
'path' => '/',
// by default, the feature is enabled by checking a
Expand All @@ -82,7 +82,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
The ``remember_me`` firewall defines the following configuration options:

``key`` (**required**)
``secret`` (**required**)
The value used to encrypt the cookie's content. It's common to use the
``secret`` value defined in the ``app/config/parameters.yml`` file.

Expand Down
4 changes: 2 additions & 2 deletions reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Each part will be explained in the next section.
remember_me:
token_provider: name
key: someS3cretKey
secret: someS3cretKey
name: NameOfTheCookie
lifetime: 3600 # in seconds
path: /foo
Expand Down Expand Up @@ -227,7 +227,7 @@ Each part will be explained in the next section.
domain: ~
handlers: []
anonymous:
key: 4f954a0667e01
secret: 4f954a0667e01
switch_user:
provider: ~
parameter: _switch_user
Expand Down

0 comments on commit 18c7f04

Please sign in to comment.