Quote:
I can understand it is console application main method but where it has to be considered in web application i am asking
To be honest, if you don;t understand that, then you shouldn't be playing with anything to do with security - this is basic stuff than any competent web developer has to know before he even gets started on "hello world!"
Go back to the beginning, learn how web apps work, get some experience in writing them, and when you have that down pat start thinking about security stuff - it's far, far too important to be worked on before you have the basics absolutely solid!