fix logout session and cookie