Question about Session-object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey all,

when we use the SQLServer mode, does the server make a db-query each time
the session object is applied or is the session data saved in the server
cache per page request?

Thanxs a lot!

Cheers,
Marc
 
I believe it retrieves the session at the beginning of the request, and then
saves it back at the end.
 
I believe it retrieves the session at the beginning of the request,
and then saves it back at the end.

Correct. You can reduce that to a single roundtrip by marking your page as
EnableSessionState="ReadOnly" or "False". ReadOnly will load it, False will
just update the timeout in the DB.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 

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