added setTimeOut to give browser time to log return-href cookie