Add session support and cookies.