Alex Rivera | Logout

Is session stored in client side or server side

Asked 2011-07-12T14:17:08.523
43

I was wondering if HttpContext.Session uses cookies to store data. A work colleague told me that in a mobi site, phones generally do not have cookies and therefore you don't have session. I always thought session is data that is stored on the server side and is not dependant on client side objects please explain if I am wrong.

I read this.

Edit
Report

2 Answers

3

This is a tricky question in some ways, as it is a bit of both.

The session state, itself, is stored on the server. But, you need some type of indicator on the client to use it. Normally, this is a server cookie, which is very thin and is basically a GUID for the session and nothing more. But, you can set up sites to pass the session ID in the URI, so it need not be a cookie.

Not sure how phones deal with the session cookie concept, but since I can log in, and do not see IDs in URIs, I assume there is a mechanism, even if it does not handle user cookies.

answered 2011-07-12T14:21:29.490
2

Session id is by defauld stored as cookie. You can also configure your session to pass its id as a query parameter ("cookieless").

answered 2011-07-12T14:21:23.750

Your Answer