title: How does the Aspose License object work? Does it last forever?
body: <p>I'm using Aspose to handle PDFs and Word documents. Each time I'm about to do something with a document, I make sure to call this:</p>
  
  <pre><code>Aspose.Pdf.License pdfLicense = new Aspose.Pdf.License();
  pdfLicense.SetLicense("Aspose.Total.lic");
  
  Aspose.Words.License wordLicense = new Aspose.Words.License();
  wordLicense.SetLicense("Aspose.Total.lic");
  </code></pre>
  
  <p>The <code>pdfLicense</code> and <code>wordLicense</code> variables are never used anywhere, yet Aspose correctly recognises that I do have a valid license. How does this happen? Are the licenses being held in a secret singleton somewhere? If so, does this mean they last for the lifetime of the thread?</p>
  
  <p>As this is being used in a web application, if I run the above code when the application starts up, can I then safely use Aspose throughout my application without worrying about the licensing?</p>
  
  <p>At the moment I'd being more paranoid and running that code at the start of every method that uses Aspose. This works fine - my license is recognised correctly - but it's a bit too "programming-by-coincidence" for me to feel comfortable about it.</p>
  
  <p>(I'm using C# with ASP.NET 3.5, if that makes any difference.)</p>