The digital home of Richard Garside

This is my digital home, a resting place for my personal and client projects. I'm a web developer based in Leeds. I specialise in .NET MVC and apps for Windows 8 and Mac. You can find out more about me here.

Recent stuff from my blog

  • Forms Authentication in .NET Core (AKA Cookie Authentication)

    In .NET Core MVC you're encourages to use .NET Identity, but you don't have to. You can manage your own user identities and you use forms authentication which is now called Cookie Authentication (which is a better name really).

    You need to install the Microsoft.AspNetCore.Authentication.Cookies nuget package.

    There is some configuration that needs to go in startup.cs:

    public void ConfigureServices(IServiceCollection services)

    {

    services

    .AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)

    .AddCookie(options => {

    options. … more

    No Comments
  • Launch of looking4.com

    For the last few months I’ve been working at Looking4 working on our new site looking4.com. As a business we’ve grown organically for several years with several different websites helping you find the best parking at airports like Leeds Airport, holiday transfers and probably more holiday related things to come in the future.

    Looking4.com has been our chance to bring these things together. As a developer it has been a great opportunity to build things from the ground up; rebuilding an existing site by taking the stuff that worked well, cleaning it up and transplanting it onto a … more

  • Don't be affraid of RCSI

    Enabling SQL Server RCSI

    RCSI is not something you get from typing too much, it's a setting in MS SQL Server that is disabled by default. Arguably it shouldn't be. It stands for Read Committed Snapshot Isolation and when enabled means that you can select data from the database with less risk of locks and also know that the data you're getting was accurate when you started the request.

    I enabled it after we we started to see a lot of failed transactions in the logs due to timeouts on requests for locked resources. The thing that confused me was the locks were being taken out for transactions that were only doing … more