[HttpFoundation] Session id can be stored not only in cookies

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Tests pass?   | yes
| Fixed tickets | #10402
| License       | MIT

If `session.use_only_cookies` & `session.use_cookies` is `false`, session id can come from `GET`.