Session state
consumes either RAM or database resources, depending on which provider you use (InProc vs. SQL). It also requires a cookie, in order for the server to associate an incoming request with a particular
Session
collection.
For something like a site ID, I would suggest storing it in a
cookie
if you can.
For best performance, configure the cookie with a path property so the browser doesn't include it with requests for images and other static files.
Refer similar thread:
Session vs Cookie[
^]