browser refresh effect on session variables and view state?

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
 
K

Kumar Reddi

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top