If you use OWIN Authentication Cookies with ASP.NET Identity, you might want to invalidate all cookies when the user signs out of your application. To do this, we simply need to get all cookies from the HTTP request, and then add them to the response with an expiration date that has already passed. Here’s how Continue reading →
LINQ (Language-Integrated Query) is a part of the C# and Visual Basic .NET languages that lets you “query” data collections, databases and XML documents (and anything else that you write a custom LINQ provider for). The syntax will feel very familiar to anyone who has experience writing SQL queries. SQL allows for the creation and Continue reading →
There are a lot of tutorials and examples of AngularJS services that make a single asynchronous request and return a single promise, but I haven’t seen many examples of complex, nested requests. With this example I will demonstrate a few complex promises in AngularJS.
After migrating web hosts, I encountered a most annoying problem: WordPress permalinks were not working for one of my sites. The main WordPress page loaded just fine, but every attempt at navigating to a post resulted in a dreaded 404 File Not Found error. When hosted on an Apache web server, WordPress uses a .htaccess Continue reading →