Ajax.NET 5.5.30.3 (cookieless support)

Michael Schwarz on Monday, May 30, 2005
Labels

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

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; } } }