Skip to content

change key to secret regrading changes in Symfony 2.8 #5764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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