Request bound to a Session?

  • Thread starter Thread starter Andreas Zita
  • Start date Start date
A

Andreas Zita

Hi

Is a Request bound to a certain Session or are they independent of each
other?
If they are bound, how can I know to what Session?

/Andreas Zita
 
On the first request, the Web server replies with a Session ID as an
in-memory cookie that the browser stores. On subsequent requests, the server
reads that same cookie and matches it up with the values that it has stored
in memory for that Session ID.

You can read the Session ID using a browser plugin tool like this
http://www.blunck.info/iehttpheaders.html.

Here's a sample Session ID:

ASP.NET_SessionId=fgadfv555y3sl545u3aiotqt
 
Hi Andreas:

When you say Session, do you mean the ASP.NET Session collection?

ASP.NET looks at incoming requests to see if they have a cookie value
or query string value that identifies which session the request is
associated with. Once ASP.NET finds this value is can make sure that
any code using the Session object goes to the right collection of
session values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top