First Line of Defense for Web Applications Articles Series
There are lots of security principles which one should be aware of while developing software but at the heart of any secure application, there should be a first line of defense
read the article series at hackers @ microsoft blog
First Line of Defense for Web Applications – Part 1
First Line of Defense for Web Applications – Part 2