Fix bug with login page & previous_page in client mode, using cookies