change cookies.permanent.signed[:remember_token] = nil to cookies.permanent.signed[:remember_token] =[nil,nil] method in sessions_helper.rb