0

I notice on some sites i can login wrong which brings me to a login page. log in incorrectly again which brings me to a wrong password page (where i can log in) and if i login wrong again i dont increase my page history count. It takes exactly 2 backs no matter how many times i get it wrong and i dont see any pages in my forward history

How do i do that? ASP.NET

3 Answers3

0

Take a look at this:

Server.Transfer Vs. Response.Redirect

Basically, if you want to do it without the user (browser) knowing about it, you use Server.Transfer; otherwise you do a Response.Redirect.

Community
  • 1
  • 1
chris
  • 36,094
  • 53
  • 157
  • 237
0

Also note, although not in server side code, there is a possibility the site uses Javascript like location.replace() - this way the history does not change.

Dror
  • 7,255
  • 3
  • 38
  • 44
0

You dont. As long as the login url stays the same there wont be another page added to the history. There may be parameters after the ? that changes the url or possibly POST data.