Hi Mateusz,
me too was referrring to HTTP principles.
On the session ID (which is, at the end, a temprary access token) discussion: these
kind of tokens are temporary, while credentials are more stable and don't require the
processing that is associated to the valdiation of credetnials.
Yes someone can stolen your session token; but think at what happens if someone
steals a session token as compared to steal your credentials!
If I still your session token I could do something while the token is valid, but you, for
example, are still able to login to the system. If I steal your credentials, I, for
example, can log to the system, change the password and permanently throwt you
away from the system!
Even if you use SSL/TLS there could be risk; indeed being credentials more stable in
time (you don't change your password every hour or day), the encrypted flow can
present some recurring patterns that help in restricting the "space" of possible
credentials. Session tokens being temporary (especially if you take the habit to assign
a limited time validity) add entropy to the system that avoid reducing the possibility
for atatckers to guess tokens.
Ciao
Domenico