[Cookbook][Session] Fix session proxy sample code

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | -
| Applies to    | 2.2+
| Fixed tickets | -