Switched old cookie system to use sessions