Skip to content

Commit 18c7f04

Browse files
committed
Remember me, Renamed key to secret
1 parent 6468cd5 commit 18c7f04

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cookbook/security/remember_me.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
2222
default:
2323
# ...
2424
remember_me:
25-
key: "%secret%"
25+
secret: "%secret%"
2626
lifetime: 604800 # 1 week in seconds
2727
path: /
2828
# by default, the feature is enabled by checking a
@@ -48,7 +48,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
4848
4949
<!-- 604800 is 1 week in seconds -->
5050
<remember-me
51-
key="%secret%"
51+
secret="%secret%"
5252
lifetime="604800"
5353
path="/" />
5454
<!-- by default, the feature is enabled by checking a checkbox
@@ -68,7 +68,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
6868
'default' => array(
6969
// ...
7070
'remember_me' => array(
71-
'key' => '%secret%',
71+
'secret' => '%secret%',
7272
'lifetime' => 604800, // 1 week in seconds
7373
'path' => '/',
7474
// by default, the feature is enabled by checking a
@@ -82,7 +82,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
8282
8383
The ``remember_me`` firewall defines the following configuration options:
8484

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

reference/configuration/security.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Each part will be explained in the next section.
180180
181181
remember_me:
182182
token_provider: name
183-
key: someS3cretKey
183+
secret: someS3cretKey
184184
name: NameOfTheCookie
185185
lifetime: 3600 # in seconds
186186
path: /foo
@@ -227,7 +227,7 @@ Each part will be explained in the next section.
227227
domain: ~
228228
handlers: []
229229
anonymous:
230-
key: 4f954a0667e01
230+
secret: 4f954a0667e01
231231
switch_user:
232232
provider: ~
233233
parameter: _switch_user

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy