By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,899 Members | 1,579 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,899 IT Pros & Developers. It's quick & easy.

browser refresh effect on session variables and view state?

P: n/a
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
Aug 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
"Dabbler" <Da*****@discussions.microsoft.comwrote in message
news:F3**********************************@microsof t.com...
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

Aug 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.