Thursday, October 18, 2012

jquery ajax authentication

Ajax calls can be authenticated with a pair of username and password credentials to secure the resources shared by the server, the sever can mandate all the request calls to send a valid set of credentials to process the request.

The credentials can be passed using GET or POST, additionally since the credentials are passed over the network, to avoid hacking we can encrypt the username and password using an encryption algorithm and pass the same; the credentials can be decoded at the server end before authentication.
Syntax
$.ajax({
    url: "AjaxData.aspx?ID=1&username=" + username + "&password=" + password,
    cache: false,
    dataType: "xml",
   
});

Related Post

jquery ajax status
jquery ajax status example
jquery ajax readyState
jquery ajax readyState example
jquery ajax caching
jquery ajax caching example
jquery ajax async
jquery ajax async example
jquery ajax authentication
jquery ajax authentication example

Search Flipkart Products:
Flipkart.com

No comments: