3

I am calling PageMethods for updating Gridview content in asp.net application [personal web app]. I would like to know a few recommendations with step by step actions to be taken by any developer in order to authenticate these PageMethod call's.

A sample code would be something like below :

function login(username,pass){
PageMethods(username,pass,success,failure,context,failure);} 

How can I validate the requests on server side? How do I make sure the request originates from whom it says to have come? I saw some similar posts but not the one with PageMethods. I had heard of nonce for ajax requests in wordpress. Does the same fit purpose here?

DavRob60
  • 3,517
  • 7
  • 34
  • 56
Deeptechtons
  • 10,945
  • 27
  • 96
  • 178

1 Answers1

0

Well this was the question that solved this question too Securing Ajax Webmethod Requests

Community
  • 1
  • 1
Deeptechtons
  • 10,945
  • 27
  • 96
  • 178