Used cookiesession and made it only apply to certain paths