Using session's cookie parameters instead of writing own cookies to prevent multiple cookies being written