fixed session.clear order on server.rb