diff options
| author | jvoisin | 2017-11-24 17:17:37 +0100 |
|---|---|---|
| committer | jvoisin | 2017-11-24 17:17:37 +0100 |
| commit | 73c30e3b45f9260bd2b94f6b37bcec8d0fe7d856 (patch) | |
| tree | f7d07887e559c848008d52a999eb1d185022318d /doc/source/config.rst | |
| parent | 6f333da3373ecaf70f1c561d8f1b9d209c907586 (diff) | |
Add a small bla about user-agent and encryption
This should close #70
Diffstat (limited to 'doc/source/config.rst')
| -rw-r--r-- | doc/source/config.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/source/config.rst b/doc/source/config.rst index c271403..99ef8e6 100644 --- a/doc/source/config.rst +++ b/doc/source/config.rst | |||
| @@ -160,6 +160,20 @@ It can either be ``enabled`` or ``disabled`` and can be used in ``simulation`` m | |||
| 160 | sp.cookie.name("my_cookie_name").encrypt(); | 160 | sp.cookie.name("my_cookie_name").encrypt(); |
| 161 | sp.cookie.name("another_cookie_name").encrypt(); | 161 | sp.cookie.name("another_cookie_name").encrypt(); |
| 162 | 162 | ||
| 163 | |||
| 164 | Removing the user-agent part | ||
| 165 | """""""""""""""""""""""""""" | ||
| 166 | |||
| 167 | Some web browser extensions, such as [uMatrix](https://github.com/gorhill/uMatrix/wiki) | ||
| 168 | might be configured to change the user-agent on a regular basis. If you think that | ||
| 169 | some of your users might be using configurations like this, you might want to disable | ||
| 170 | the mixing of the user-agent in the cookie's encryption key. The simplest way to do | ||
| 171 | so is to set the environment variable ``HTTP_USER_AGENT`` to a fixed value before passing | ||
| 172 | it to your php process. | ||
| 173 | |||
| 174 | We think that this use case is too exotic to be worth implementing as a | ||
| 175 | proper configuration directive. | ||
| 176 | |||
| 163 | Choosing the proper environment variable | 177 | Choosing the proper environment variable |
| 164 | """""""""""""""""""""""""""""""""""""""" | 178 | """""""""""""""""""""""""""""""""""""""" |
| 165 | 179 | ||
