April 2009 Entries

Using Forms Authentication with HTML Pages (or, really, any file-type you desire)

So, I recently had to write a small application that would basically prevent anonyomous users from accessing a site...which normally would take all of 5 minutes. The catch, though, was that the site I had to prevent access to was static content...predominantly HTML and Flash movies. Setting up forms authentication at first glance seems to work without issue...until you try to access an HTML file directly. Upon doing so, you'll go to the HTML page without issue for the simple fact that HTML pages...

Another Abstract Factory & Strategy Pattern Explanation

Alright, I already know what you're thinking after reading the title, but that's why I prefaced it with "Another..." Long story short, I wrote this nice long e-mail to my friend/colleague here at work and I thought maybe it would be of use to one of the three people out there that haven't read 84 different explanations of the abstract factory pattern. Again, it was formally an e-mail so I ran through it and added some clarifications in brackets...hope I made _some_ sense :) A link to an explanation...

Twitter