[5.0] Use Symfony Session In Guard

These small changes mean we can use any Symfony session driver, which makes this slightly more flexible.

We can use `set()` instead of `put()` and `remove()` instead of `forget()`, because the dot notation stuff in the latter methods is not needed (we only have a simple string as key).