Skip to content

Commit

Permalink
minor #5081 [Cookbook][Session] some language tweaks (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Session] some language tweaks

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

Commits
-------

5377525 some language tweaks
  • Loading branch information
weaverryan committed Mar 14, 2015
2 parents e9b9376 + 5377525 commit ce8744d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cookbook/session/locale_sticky_session.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ before the ``FirewallListener``, which is responsible for handling authenticatio
setting the user token on the ``TokenStorage``, you have no access to the user
which is logged in.

Let's pretend you have defined a ``locale"`` property on your ``User`` entity
and you want to use this as the locale for the given user. To accomplish this,
you can hook into the login process and update the user's session with the
this locale value before they are redirected to their first page.
Assumed you have defined a ``locale`` property on your ``User`` entity and
you want to use this as the locale for the given user. To accomplish this,
you can hook into the login process and update the user's session with this
locale value before they are redirected to their first page.

To do this, you need an event listener for the ``security.interactive_login``
event:
Expand Down

0 comments on commit ce8744d

Please sign in to comment.