title: Accessing SharePoint authentication information from .NET ActiveX control
body: <p>We have a <strong>.NET ActiveX control</strong> which is embedded inside a <strong>custom SharePoint page</strong>. 
  The user has to authenticate (<strong>Windows Authentication</strong> not Forms Authentication) to access this page. </p>
  
  <p>Our ActiveX control is making <strong>web service calls back to the SharePoint server</strong>. Because the <strong>SharePoint server does not allow anonymous access</strong>, we need to provide credentials as part of the web services call. If the user is checking the 'Remember Password' checkbox when prompted for credentials, then we can access those credentials via the <strong>CredentialCache.DefaultNetworkCredentials</strong>. However, if they <strong>do not check that checkbox</strong>, we need <strong>another mechanism</strong> to get a hold of valid credentials (which must exist since we are embedded in a page that can only be accessed via authentication).</p>
  
  <p>How can we access the credential information (probably stored in a cookie) we need to authenticate against SharePoint so we can access the web services?</p>