Ajax.NET 5.5.30.3 (cookieless support)

There is a new version available at http://ajax.schwarz-interactive.de. Feel free to download the version 5.5.30.3 with following fixes:

- Script tags will use type instead of language
- cookieless web application support (for HttpSession)
- AjaxMethods are supporting void
- special chars &, = and \r\n

I hope the next version will using IHttpAsynHandler instead of IHttpHandler.

I also added a IHttpModule example how to implement your own security:

internal class AjaxSecurityModule : IHttpModule
{
  private void context_BeginRequest(object sender, EventArgs e)
  {
    HttpRequest request = HttpContext.Current.Request;
    if(request.HttpMethod != "POST"
      || !request.RawUrl.ToLower().StartsWith(request.ApplicationPath.ToLower() + "/ajax/")
      || !request.Url.AbsolutePath.ToLower().EndsWith(".ashx"))
    return;

    if(request.UserHostAddress == "127.0.0.1")
    {
      HttpResponse response = HttpContext.Current.Response;
      response.Write("new Object();r.error = new ajax_error('error','description',0)");
      response.End();
      return;
    }
  }
}

3 Comments

Comments have been disabled for this content.