browser refresh effect on session variables and view state?

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

Guest

What effect does the browser refresh button have on a) session variables and
b) viewstate?

My page loads info based on session variables and it seems this breaks when
someone does a page refresh.

Thanks for info or link to info on this.

Dabbler
 
browser refresh is simply the execution of previous HTTP request.. If your
page performed a database query in the previous request.. on refresh it will
perform the same action again.. if it is the same page...

You have to remember one thing.. some requests actually consists of multiple
requests.. lets say you do a postback.. which is of type HTTP POST and lets
say you do a Response.Redirect somewhere in your code during this request..
so the last request the server received would be a GET request to serve the
page in the response.redirect, but not that originally performed POST
request
 
Back
Top