automatic authentication in new windows with cookies