Response.Redirect vs Server.Transfer
I have a page in a website I am working on which when a user completes a form I want the page to change to another page.
The page they are redirected to is only available once the form has been submitted and this authentication works by creating a cookie and then checking to see if that cookie exists when a user requests that page. This is to prevent users from having to fill out the form multiple times to view this extra page.
Should I be redirecting the user using Response.Redirect or Server.Transfer? I have set it up initially so that the user is redirected using Response.Redirect but I have thought that perhaps it might be better to use Server.Transfer as this would keep the url in the address bar the same meaning there would be less attempts at requesting the page without first filling in the form.
The page does check to see if the cookie exists on load and if it doesn't it redirects to the page containing the form. This also uses Response.Redirect but should this use Server.Transfer as well?
Cheers
|