Connection now uses session to preserve cookies