A more thorough cookie session setup.