# Tuesday, July 26, 2005

Mike Vernal figured out from where Microsoft's whole "evil empire" moniker comes.´

Must read :-)

Tuesday, July 26, 2005 10:59:23 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [16]  | 
# Monday, July 25, 2005

If you ever wanted to know where newtelligence headquarter is (Korschenbroich)...

http://virtualearth.msn.com/default.aspx?cp=51.188584|6.605851&style=r&lvl=9&v=1

You can also see where our next SOA Workshop will happen (Düsseldorf) on September 5 - 7, 2005.

Monday, July 25, 2005 10:08:46 AM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [25]  | 
# Friday, July 22, 2005

Scott posted a solution to support httpOnly cookies in ASP.NET 1.1 but pointed out some problems when you run the code on 2.0(http://www.hanselman.com/blog/HttpOnlyCookiesOnASPNET11.aspx)

Here is a solution:

		
protected void Application_EndRequest(Object sender, EventArgs e)
{    
	if(System.Environment.Version.Major<2)
	{
		foreach(string cookie in Response.Cookies)    
		{        
			const string HTTPONLY = ";HttpOnly";        
			string path = Response.Cookies[cookie].Path;        
			if (path.EndsWith(HTTPONLY) == false)        
			{            
				//force HttpOnly to be added to the cookie            
				Response.Cookies[cookie].Path += HTTPONLY;        
			}    
		}
	}
}
ASP.NET | C# | Projects
Friday, July 22, 2005 2:43:24 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [21]  | 
# Wednesday, July 20, 2005
Wednesday, July 20, 2005 5:44:40 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [16]  | 
# Friday, July 15, 2005
I just stumbled over roy's post and i think it would make sense to use smth like that as a capcha solution.
ASP.NET | C# | Misc | Projects
Friday, July 15, 2005 2:29:51 PM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [29]  | 
# Wednesday, June 22, 2005
# Monday, June 20, 2005

Pierre posted an entry bout impersonation in ASP.NET szenarios.

[Pierre]There are several scenario where you have to use the impersonation in ASP.NET. Consider, for example, you have to save and load files from a network share (file server). In that case, if the web site accept anonymous authentications, you have to impersonate a windows user who has enought privileges to access to that resource.

You have three choices (I guess):

  1. Elevate the ASP.NET process identity - worse case since you could compromise the whole site security
  2. Impersonate a windows user during the single call (http://blogs.msdn.com/shawnfa/archive/2005/03/22/400749.aspx)
  3. Demand the task to a COM+ server application

I think that the last is the best since we have more security and maintenance control
[...]

I agree with him that "Demand the task to a COM+ server application" is the best way of the three he listed. But for me impersonation it is still a don't.

By the way i wanted to post this as a comment but "Comments on this post are closed". Yes this is some criticism on weblogs.asp.net :-) ...

So here my opinion as post in my blog:


Avoid impersonation!
If you need to "redirect a binary that is located on a different box than the webserver to the client" utilize another IIS on the 2nd machine or write a service that returns the binary data.

 

Monday, June 20, 2005 8:57:15 AM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [17]  |